Skip to content

Commit

Permalink
wip(admin): early prototype of confirming jury result
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricss committed Feb 3, 2025
1 parent 1f80bcc commit 4bb14cd
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,20 @@ export const Resultat = (): JSX.Element | null => {

const result = jury?.result;

const hasFinalResult =
result && result !== "PARTIAL_SUCCESS_PENDING_CONFIRMATION";

const editable = candidacy?.jury
? isAfter(new Date(), startOfDay(candidacy?.jury.dateOfSession)) && !result
? isAfter(new Date(), startOfDay(candidacy?.jury.dateOfSession)) &&
!hasFinalResult
: false;

return (
<>
<h3>Résultat suite au passage devant le jury</h3>

<div className="flex flex-col gap-10">
{!result && (
{!hasFinalResult && (
<p className="m-0 text-gray-600">
Sélectionnez le résultat à communiquer par e-mail au candidat et à
l’AAP. Vous devrez également envoyer un document officiel au
Expand Down Expand Up @@ -179,7 +183,7 @@ export const Resultat = (): JSX.Element | null => {
</>
)}

{!getCandidacy.isLoading && !result && (
{!getCandidacy.isLoading && !hasFinalResult && (
<form onSubmit={handleFormSubmit}>
<RadioButtons
legend="Résultat"
Expand Down

0 comments on commit 4bb14cd

Please sign in to comment.