Skip to content

Commit 108d691

Browse files
committed
chore(vae-collective): replaced end props by endDetails in cards
1 parent d1c8dfb commit 108d691

File tree

3 files changed

+3
-11
lines changed
  • packages/reva-vae-collective/src/app/(main)/commanditaires

3 files changed

+3
-11
lines changed

packages/reva-vae-collective/src/app/(main)/commanditaires/[commanditaireId]/cohortes/[cohorteVaeCollectiveId]/aaps/_components/organism-card/OrganismCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const OrganismCard = ({
7272
)}
7373
</>
7474
}
75-
end="choisir"
75+
endDetail="choisir"
7676
size="small"
7777
enlargeLink
7878
linkProps={{

packages/reva-vae-collective/src/app/(main)/commanditaires/[commanditaireId]/cohortes/page.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,7 @@ export default async function CohortesPage({
178178
)}
179179
</>
180180
}
181-
end={
182-
<p className="text-xs text-dsfrGray-mentionGrey mb-0">
183-
Créée le {format(cohorte.createdAt, "dd/MM/yyyy")}
184-
</p>
185-
}
181+
endDetail={`Créée le ${format(cohorte.createdAt, "dd/MM/yyyy")}`}
186182
linkProps={{
187183
href: `/commanditaires/${commanditaireId}/cohortes/${cohorte.id}`,
188184
}}

packages/reva-vae-collective/src/app/(main)/commanditaires/page.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ export default async function CommanditairesPage({
8484
linkProps={{
8585
href: `/commanditaires/${commanditaire.id}/cohortes`,
8686
}}
87-
end={
88-
<p className="text-xs text-dsfrGray-mentionGrey mb-0">
89-
Créé le {format(commanditaire.createdAt, "dd/MM/yyyy")}
90-
</p>
91-
}
87+
endDetail={`Créé le ${format(commanditaire.createdAt, "dd/MM/yyyy")}`}
9288
/>
9389
</li>
9490
);

0 commit comments

Comments
 (0)