diff --git a/src/components/EcogestureForm/EcogestureFormSingleChoice.spec.tsx b/src/components/EcogestureForm/EcogestureFormSingleChoice.spec.tsx index 161e0d8bada00a748a121d800dbe126b0df2d3b2..08b6e351d70524280a3448f315285a292e598b6c 100644 --- a/src/components/EcogestureForm/EcogestureFormSingleChoice.spec.tsx +++ b/src/components/EcogestureForm/EcogestureFormSingleChoice.spec.tsx @@ -47,7 +47,7 @@ describe('EcogestureFormSingleChoice component', () => { step={0} viewedStep={-1} setNextStep={mockHandleNextStep} - setPrevioustStep={mockHandlePreviousStep} + setPreviousStep={mockHandlePreviousStep} profileEcogesture={mockProfileEcogesture} answerType={mockEcogestureAnswer} /> @@ -63,7 +63,7 @@ describe('EcogestureFormSingleChoice component', () => { step={0} viewedStep={-1} setNextStep={mockHandleNextStep} - setPrevioustStep={mockHandlePreviousStep} + setPreviousStep={mockHandlePreviousStep} profileEcogesture={mockProfileEcogesture} answerType={mockEcogestureAnswer} /> @@ -81,7 +81,7 @@ describe('EcogestureFormSingleChoice component', () => { step={0} viewedStep={-1} setNextStep={mockHandleNextStep} - setPrevioustStep={mockHandlePreviousStep} + setPreviousStep={mockHandlePreviousStep} profileEcogesture={mockProfileEcogesture} answerType={mockEcogestureAnswer} /> @@ -101,7 +101,7 @@ describe('EcogestureFormSingleChoice component', () => { step={1} viewedStep={0} setNextStep={mockHandleNextStep} - setPrevioustStep={mockHandlePreviousStep} + setPreviousStep={mockHandlePreviousStep} profileEcogesture={mockProfileEcogesture} answerType={mockEcogestureAnswer} /> @@ -118,7 +118,7 @@ describe('EcogestureFormSingleChoice component', () => { step={0} viewedStep={1} setNextStep={mockHandleNextStep} - setPrevioustStep={mockHandlePreviousStep} + setPreviousStep={mockHandlePreviousStep} profileEcogesture={mockProfileEcogesture} answerType={mockEcogestureAnswer} /> diff --git a/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx b/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx index 8fa20fd7cf2630ca631954a6764c20e493b26039..dbf9b2fe1956dcfe5ed5cc9c71312f57e7e0abb0 100644 --- a/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx +++ b/src/components/EcogestureForm/EcogestureFormSingleChoice.tsx @@ -18,7 +18,7 @@ interface EcogestureFormSingleChoiceProps { profileEcogesture: ProfileEcogesture answerType: ProfileEcogestureAnswer setNextStep: Function - setPrevioustStep: Function + setPreviousStep: Function } const EcogestureFormSingleChoice: React.FC<EcogestureFormSingleChoiceProps> = ({ @@ -27,7 +27,7 @@ const EcogestureFormSingleChoice: React.FC<EcogestureFormSingleChoiceProps> = ({ profileEcogesture, answerType, setNextStep, - setPrevioustStep, + setPreviousStep, }: EcogestureFormSingleChoiceProps) => { const { t } = useI18n() const { isProfileEcogestureCompleted } = useSelector( @@ -38,8 +38,8 @@ const EcogestureFormSingleChoice: React.FC<EcogestureFormSingleChoiceProps> = ({ ) const handlePrevious = useCallback(() => { - setPrevioustStep(profileEcogesture) - }, [profileEcogesture, setPrevioustStep]) + setPreviousStep(profileEcogesture) + }, [profileEcogesture, setPreviousStep]) const handleAnswer = useCallback((value: ProfileEcogestureAnswerChoices) => { setAnswer(value) diff --git a/src/components/EcogestureForm/EcogestureFormView.tsx b/src/components/EcogestureForm/EcogestureFormView.tsx index 22bfb91abba7f4887f790dfd9cc30ad7d7a88802..b2fbe1779d04ecc9f6135e2fa64572d20df9dc0a 100644 --- a/src/components/EcogestureForm/EcogestureFormView.tsx +++ b/src/components/EcogestureForm/EcogestureFormView.tsx @@ -117,7 +117,7 @@ const EcogestureFormView: React.FC = () => { profileEcogesture={profileEcogesture} answerType={answerType} setNextStep={setNextStep} - setPrevioustStep={setPreviousStep} + setPreviousStep={setPreviousStep} /> )} </> diff --git a/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap b/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap index 93eafddb3cce92ff89963b43662aca1aa14e3555..78708be125a12ebf084aa15ad7387fd81f4640cd 100644 --- a/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap +++ b/src/components/EcogestureForm/__snapshots__/EcogestureFormSingleChoice.spec.tsx.snap @@ -33,7 +33,7 @@ exports[`EcogestureFormSingleChoice component should be rendered correctly 1`] = } } setNextStep={[MockFunction]} - setPrevioustStep={[MockFunction]} + setPreviousStep={[MockFunction]} step={0} viewedStep={-1} > diff --git a/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap b/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap index 70dd31dc953e82bf248058ae95601460c421e3ee..05718102ded39cce7cef10b601ffc5083d50b91f 100644 --- a/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap +++ b/src/components/EcogestureForm/__snapshots__/EcogestureFormView.spec.tsx.snap @@ -44,7 +44,7 @@ exports[`EcogestureFormView component should be rendered correctly 1`] = ` } } setNextStep={[Function]} - setPrevioustStep={[Function]} + setPreviousStep={[Function]} step={0} viewedStep={-1} >