File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
packages/reva-admin-react/src/app/(aap)/candidacies/[candidacyId]/jury-aap/_components Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { format } from "date-fns" ;
2
2
import { useJuryAAP } from "./jury-aap.hook" ;
3
+ import Alert from "@codegouvfr/react-dsfr/Alert" ;
3
4
4
5
export const DateDeJuryTab = ( ) => {
5
6
const { candidacy } = useJuryAAP ( ) ;
6
7
const jury = candidacy ?. jury ;
8
+
9
+ if ( ! jury || ! jury . dateOfSession ) {
10
+ return (
11
+ < Alert
12
+ description = {
13
+ < div className = "ml-2 mt-3 mb-4" >
14
+ < h6 > En attente de la date de jury</ h6 >
15
+ < dd >
16
+ Le certificateur vous communiquera la date du jury de votre
17
+ candidat.
18
+ </ dd >
19
+ </ div >
20
+ }
21
+ severity = "info"
22
+ small
23
+ />
24
+ ) ;
25
+ }
26
+
7
27
return (
8
28
< div className = "flex flex-col gap-8" >
9
29
< div >
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ const juryResultNotice: {
33
33
export const ResultatTab = ( ) => {
34
34
const { candidacy } = useJuryAAP ( ) ;
35
35
const jury = candidacy ?. jury ;
36
- const hasResult = jury ?. result !== null ;
36
+ const hasResult = jury ?. result !== null && jury !== null ;
37
37
38
38
if ( ! hasResult ) {
39
39
return (
40
40
< Alert
41
41
description = {
42
- < div className = "pl-2" >
42
+ < div className = "pl-2 mt-3 mb-4 " >
43
43
< h6 > En attente du résultat</ h6 >
44
44
< dd >
45
45
Le certificateur vous communiquera le résultat de votre candidat.
You can’t perform that action at this time.
0 commit comments