Skip to content

Commit

Permalink
feat(ui): fix DuplicateEffectifDetail model
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
sbenfares committed Oct 5, 2023
1 parent ec5a62d commit 6dcda44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ const EffectifDoublonDetailModal = ({
<i>Date de naissance</i>
</Td>
<Td>
<b>{formatDateDayMonthYear(duplicateDetail?.apprenant?.date_de_naissance)}</b>
<b>
{duplicateDetail?.apprenant?.date_de_naissance &&
formatDateDayMonthYear(duplicateDetail?.apprenant?.date_de_naissance)}
</b>
</Td>
</Tr>
<Tr>
Expand Down Expand Up @@ -297,7 +300,7 @@ const EffectifDoublonDetailModal = ({
<i>Date de fin de contrat</i>
</Td>
<Td>
<b>{formatDateDayMonthYear(contrat?.date_fin)}</b>
<b>{contrat?.date_fin && formatDateDayMonthYear(contrat?.date_fin)}</b>
</Td>
</Tr>
<Tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export interface DuplicateEffectifDetail {
id_erp_apprenant: string;
annee_scolaire: string;
apprenant?: {
nom?: string;
prenom?: string;
nom: string;
prenom: string;
ine?: string;
date_de_naissance?: string;
date_de_naissance?: Date;
courriel?: string;
telephone?: string;
adresse?: {
Expand All @@ -20,7 +20,7 @@ export interface DuplicateEffectifDetail {
academie?: string;
region?: string;
};
historique_statut?: [
historique_statut: [
{
valeur_statut?: string;
date_statut?: string;
Expand All @@ -32,14 +32,14 @@ export interface DuplicateEffectifDetail {
libelle_long?: string;
cfd?: string;
rncp?: string;
periode?: string;
periode: string[];
annee?: string;
};
contrats?: [
{
date_debut?: string;
date_fin?: string;
date_rupture?: string;
date_debut: Date;
date_fin?: Date;
date_rupture?: Date;
cause_rupture?: string;
},
];
Expand Down

0 comments on commit 6dcda44

Please sign in to comment.