From 33370c875af9b6a7d38d1dbd2802fea26aa1a081 Mon Sep 17 00:00:00 2001 From: Dorian Date: Wed, 11 Dec 2024 15:17:51 +0100 Subject: [PATCH] Adding notEligibleFor360 key for coachs --- src/components/registration/Registration.types.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/registration/Registration.types.tsx b/src/components/registration/Registration.types.tsx index 1bafe0b7..661506b0 100644 --- a/src/components/registration/Registration.types.tsx +++ b/src/components/registration/Registration.types.tsx @@ -145,14 +145,18 @@ export const RegistrationStepContents: { }, [USER_ROLES.COACH]: { form: formRegistrationCoachProgram, - dependsOn: ['department'], + dependsOn: ['department', 'birthDate'], + // Pour un coach qui n'a pas le choix, on skip cette etape et on lui assigne le programme CDP + skippedBy: { + notEligibleFor360: true, + }, }, }, 'step-4': { [USER_ROLES.CANDIDATE]: { form: formRegistrationCandidateProgram, dependsOn: ['department', 'birthDate'], - // Pour un candidat qui n'a pas le choix, on skip cette etape + // Pour un candidat qui n'a pas le choix, on skip cette etape et on lui assigne le programme CDP skippedBy: { notEligibleFor360: true, },