diff --git a/src/components/EcogestureForm/EcogestureFormEquipment.tsx b/src/components/EcogestureForm/EcogestureFormEquipment.tsx index 268ae76cc137b0c56b4b038b29348a204a417938..6d5d656fc0f5e4de2b6910ca6b56eeed74952767 100644 --- a/src/components/EcogestureForm/EcogestureFormEquipment.tsx +++ b/src/components/EcogestureForm/EcogestureFormEquipment.tsx @@ -107,6 +107,7 @@ const EcogestureFormEquipment: React.FC<EcogestureFormEquipmentProps> = ({ handlePrevious={handlePrevious} handleNext={handleFinish} disableNextButton={answer === []} + isEcogesture={true} /> </div> ) diff --git a/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx b/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx index cb1a155dfb1d0e0f4d2dbe8e8cece7ea1a565867..790e0b4dbe99bd6bf5c6d7aa41d6d8ef96225bb1 100644 --- a/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx +++ b/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx @@ -91,6 +91,7 @@ const EcogestureFormSingleChoice: React.FC<EcogestureFormSingleChoiceProps> = ({ handlePrevious={handlePrevious} handleNext={handleNext} disableNextButton={answer === ''} + isEcogesture={true} /> </div> ) diff --git a/src/components/EcogestureForm/__snapshots__/EcogestureFormEquipment.spec.tsx.snap b/src/components/EcogestureForm/__snapshots__/EcogestureFormEquipment.spec.tsx.snap index 4e2e1a1666d9a520148693fc9b339c95f51ef1e0..26e73e2ed207751330783f75d9d96753f0bf4c5c 100644 --- a/src/components/EcogestureForm/__snapshots__/EcogestureFormEquipment.spec.tsx.snap +++ b/src/components/EcogestureForm/__snapshots__/EcogestureFormEquipment.spec.tsx.snap @@ -304,6 +304,7 @@ exports[`EcogestureFormEquipment component should be rendered correctly 1`] = ` disableNextButton={false} handleNext={[Function]} handlePrevious={[Function]} + isEcogesture={true} step={3} > <div diff --git a/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap b/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap index bb393acb5b411574e73c9758f3eb1ab51c0746ab..e68886b80ccfeafb97303f9ec5c9d7c37560d210 100644 --- a/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap +++ b/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap @@ -81,6 +81,7 @@ exports[`EcogestureFormSingleChoice component should be rendered correctly 1`] = disableNextButton={true} handleNext={[Function]} handlePrevious={[Function]} + isEcogesture={true} step={0} > <div diff --git a/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap b/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap index d78f1cad36378b99e9a2b55b214520880e3bb6e4..3caf0d88608e85810999a00c625118971598c111 100644 --- a/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap +++ b/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap @@ -92,6 +92,7 @@ exports[`EcogestureFormView component should be rendered correctly 1`] = ` disableNextButton={true} handleNext={[Function]} handlePrevious={[Function]} + isEcogesture={true} step={0} > <div diff --git a/src/components/ProfileType/FormNavigation.tsx b/src/components/ProfileType/FormNavigation.tsx index 13f347200d9166577de210553b32df11a80fc16a..07e9097a1c8adbb85c42d8ea0b8d9c3a2afc4b02 100644 --- a/src/components/ProfileType/FormNavigation.tsx +++ b/src/components/ProfileType/FormNavigation.tsx @@ -11,6 +11,7 @@ interface FormNavigationProps { handlePrevious: Function handleNext: Function disableNextButton: boolean + isEcogesture?: boolean } const FormNavigation: React.FC<FormNavigationProps> = ({ @@ -18,6 +19,7 @@ const FormNavigation: React.FC<FormNavigationProps> = ({ handlePrevious, handleNext, disableNextButton, + isEcogesture, }: FormNavigationProps) => { const { t } = useI18n() @@ -45,7 +47,7 @@ const FormNavigation: React.FC<FormNavigationProps> = ({ <Button aria-label={ step === ProfileTypeStepForm.UPDATE_DATE || - step === EcogestureStepForm.EQUIPMENTS + (step === EcogestureStepForm.EQUIPMENTS && isEcogesture) ? t('profile_type.accessibility.button_end') : t('profile_type.accessibility.button_next') } @@ -60,7 +62,7 @@ const FormNavigation: React.FC<FormNavigationProps> = ({ }} > {step === ProfileTypeStepForm.UPDATE_DATE || - step === EcogestureStepForm.EQUIPMENTS + (step === EcogestureStepForm.EQUIPMENTS && isEcogesture) ? t('profile_type.form.button_end') : `${t('profile_type.form.button_next')} >`} </Button>