Skip to content

Commit

Permalink
chore: type & translation
Browse files Browse the repository at this point in the history
  • Loading branch information
QRuhier committed Jan 16, 2025
1 parent 9b327ac commit f97fedd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/ui/pages/Error/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ export function ErrorPage() {
if (isRouteErrorResponse(error)) {
return (
<ErrorComponent
message={`${t('error')} ${error.status} :
${error.statusText}`}
message={`${t('error')} ${error.status} : ${error.statusText}`}
/>
)
}
return <ErrorComponent message="Erreur inconnue" />
return <ErrorComponent message={t('shortUnknownError')} />
}
3 changes: 2 additions & 1 deletion src/ui/pages/review/Review.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -17,7 +18,7 @@ export function Review() {

const getReferentiel = reviewSurvey.getReferentiel

const onQuit = () => {
const onQuit = (_surveyUnit: SurveyUnit) => {
setIsQuitModalOpen(true)
}

Expand Down

0 comments on commit f97fedd

Please sign in to comment.