diff --git a/site/source/pages/simulateurs/impot-societe/index.tsx b/site/source/pages/simulateurs/impot-societe/index.tsx index c67eeb505..5c960dc11 100644 --- a/site/source/pages/simulateurs/impot-societe/index.tsx +++ b/site/source/pages/simulateurs/impot-societe/index.tsx @@ -1,4 +1,4 @@ -import { Trans } from 'react-i18next' +import { Trans, useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react-redux' import styled from 'styled-components' @@ -10,12 +10,13 @@ import { SimulationGoal, SimulationGoals, } from '@/components/Simulation' +import { StyledInputSuggestion } from '@/components/conversation/InputSuggestions' import RuleInput from '@/components/conversation/RuleInput' import Warning from '@/components/ui/WarningBlock' import { FromTop } from '@/components/ui/animate' import { H2 } from '@/design-system/typography/heading' import { Link } from '@/design-system/typography/link' -import { Body, Intro, SmallBody } from '@/design-system/typography/paragraphs' +import { Body, Intro } from '@/design-system/typography/paragraphs' import { batchUpdateSituation, updateSituation } from '@/store/actions/actions' import { situationSelector } from '@/store/selectors/simulationSelectors' @@ -56,48 +57,49 @@ const ExerciceDateContainer = styled.div` function ExerciceDate() { const dispatch = useDispatch() + const { t } = useTranslation() return ( - <> - - - Préremplir avec les dates de{' '} - { - dispatch( - batchUpdateSituation({ - 'entreprise . exercice . début': '01/01/2022', - 'entreprise . exercice . fin': '31/12/2022', - }) - ) - }} - > - l'exercice 2022 - {' '} - ou de{' '} - { - dispatch( - batchUpdateSituation({ - 'entreprise . exercice . début': '01/01/2023', - 'entreprise . exercice . fin': '31/12/2023', - }) - ) - }} - > - l'exercice 2023 - - - -
+
+ + + + { + dispatch( + batchUpdateSituation({ + 'entreprise . exercice . début': '01/01/2022', + 'entreprise . exercice . fin': '31/12/2022', + }) + ) + }} + > + Exercice 2022 + {' '} + { + dispatch( + batchUpdateSituation({ + 'entreprise . exercice . début': '01/01/2023', + 'entreprise . exercice . fin': '31/12/2023', + }) + ) + }} + > + Exercice 2023 + {' '} + + + + - +
) }