From f97fedd3a0a840447d4fe02b4a33cc00cfa8882b Mon Sep 17 00:00:00 2001 From: Quentin Ruhier Date: Thu, 16 Jan 2025 17:27:15 +0100 Subject: [PATCH] chore: type & translation --- src/ui/pages/Error/Error.tsx | 5 ++--- src/ui/pages/review/Review.tsx | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/pages/Error/Error.tsx b/src/ui/pages/Error/Error.tsx index c2af9b92..625b92bf 100644 --- a/src/ui/pages/Error/Error.tsx +++ b/src/ui/pages/Error/Error.tsx @@ -16,10 +16,9 @@ export function ErrorPage() { if (isRouteErrorResponse(error)) { return ( ) } - return + return } diff --git a/src/ui/pages/review/Review.tsx b/src/ui/pages/review/Review.tsx index 05cb9a7e..306883b8 100644 --- a/src/ui/pages/review/Review.tsx +++ b/src/ui/pages/review/Review.tsx @@ -1,6 +1,7 @@ import { useState } from 'react' import { useCore } from '@/core' +import type { SurveyUnit } from '@/core/model' import { useTranslation } from '@/i18n' import { Modal } from '@/ui/components/Modal' import { Orchestrator } from '@/ui/components/orchestrator/Orchestrator' @@ -17,7 +18,7 @@ export function Review() { const getReferentiel = reviewSurvey.getReferentiel - const onQuit = () => { + const onQuit = (_surveyUnit: SurveyUnit) => { setIsQuitModalOpen(true) }