Skip to content

Commit

Permalink
🐛 Afficher preview attestation (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque authored Oct 17, 2024
1 parent c3148f0 commit e23b840
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ type Props = {
export const getCandidatureActions = (props: Props): CandidatureListItemActionsProps['actions'] =>
match(props)
.returnType<CandidatureListItemActionsProps['actions']>()
.with({ aUneAttestation: false }, () => ({ télécharger: false, prévisualiser: false }))
.with({ estNotifiée: true }, () => ({ télécharger: true, prévisualiser: false }))
.otherwise(() => ({ télécharger: false, prévisualiser: true }));
.with({ estNotifiée: false }, () => ({ télécharger: false, prévisualiser: true }))
.with({ estNotifiée: true, aUneAttestation: true }, () => ({
télécharger: true,
prévisualiser: false,
}))
.otherwise(() => ({ télécharger: false, prévisualiser: false }));

0 comments on commit e23b840

Please sign in to comment.