From 96a7fcf3fe904cf7d03c17c0698824f7dbbc8ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 2 Mar 2023 18:46:33 +0100 Subject: [PATCH] Add /simulateurs-et-assistants --- site/source/components/App.tsx | 5 +++++ site/source/pages/Landing/Landing.tsx | 2 +- site/source/pages/Simulateurs/index.tsx | 10 +++++++--- site/source/pages/Simulateurs/pamc/PAMCHome.tsx | 2 +- site/source/pages/Stats/Stats.tsx | 2 +- .../choix-du-statut/choix-statut-juridique/index.tsx | 2 +- site/source/pages/assistants/index.tsx | 3 +-- .../pages/assistants/pour-mon-entreprise/index.tsx | 2 +- .../illustration-simulateur.svg | 0 .../Home.tsx => simulateurs-et-assistants/index.tsx} | 6 +++--- site/source/sitePaths.ts | 2 ++ 11 files changed, 23 insertions(+), 13 deletions(-) rename site/source/pages/{Simulateurs/images => simulateurs-et-assistants}/illustration-simulateur.svg (100%) rename site/source/pages/{Simulateurs/Home.tsx => simulateurs-et-assistants/index.tsx} (98%) diff --git a/site/source/components/App.tsx b/site/source/components/App.tsx index 18c3610ef..9204114a0 100644 --- a/site/source/components/App.tsx +++ b/site/source/components/App.tsx @@ -34,6 +34,7 @@ import Simulateurs from '@/pages/Simulateurs' import Stats from '@/pages/Stats/LazyStats' import Assistants from '@/pages/assistants/index' import Integration from '@/pages/integration/index' +import SimulateursEtAssistants from '@/pages/simulateurs-et-assistants' import { useSitePaths } from '@/sitePaths' import Provider, { ProviderProps } from './Provider' @@ -129,6 +130,10 @@ const App = () => { path={relativeSitePaths.simulateurs.index + '/*'} element={} /> + } + /> - } /> + + } + /> {simulatorRoutes} diff --git a/site/source/pages/Simulateurs/pamc/PAMCHome.tsx b/site/source/pages/Simulateurs/pamc/PAMCHome.tsx index dfe0d2dad..5e21cfe0d 100644 --- a/site/source/pages/Simulateurs/pamc/PAMCHome.tsx +++ b/site/source/pages/Simulateurs/pamc/PAMCHome.tsx @@ -2,7 +2,7 @@ import { TrackPage } from '@/components/ATInternetTracking' import { H2 } from '@/design-system/typography/heading' import useSimulatorsData from '@/hooks/useSimulatorsData' -import { SimulateurCard } from '../Home' +import { SimulateurCard } from '../../simulateurs-et-assistants' export default function SalariéSimulation() { const simulators = useSimulatorsData() diff --git a/site/source/pages/Stats/Stats.tsx b/site/source/pages/Stats/Stats.tsx index 1e0d1d051..85b424b15 100644 --- a/site/source/pages/Stats/Stats.tsx +++ b/site/source/pages/Stats/Stats.tsx @@ -20,7 +20,7 @@ import { useFetchData } from '@/hooks/useFetchData' import useSimulatorsData, { SimulatorData } from '@/hooks/useSimulatorsData' import { debounce, groupBy } from '@/utils' -import { SimulateurCard } from '../Simulateurs/Home' +import { SimulateurCard } from '../simulateurs-et-assistants' import Chart, { Data, isDataStacked } from './Chart' import DemandeUtilisateurs from './DemandesUtilisateurs' import GlobalStats, { BigIndicator } from './GlobalStats' diff --git a/site/source/pages/assistants/choix-du-statut/choix-statut-juridique/index.tsx b/site/source/pages/assistants/choix-du-statut/choix-statut-juridique/index.tsx index 88665695e..776e2a255 100644 --- a/site/source/pages/assistants/choix-du-statut/choix-statut-juridique/index.tsx +++ b/site/source/pages/assistants/choix-du-statut/choix-statut-juridique/index.tsx @@ -11,11 +11,11 @@ import { Grid, Spacing } from '@/design-system/layout' import { H2 } from '@/design-system/typography/heading' import { Intro, SmallBody } from '@/design-system/typography/paragraphs' import useSimulatorsData from '@/hooks/useSimulatorsData' +import { SimulateurCard } from '@/pages/simulateurs-et-assistants' import { useSitePaths } from '@/sitePaths' import { RootState } from '@/store/reducers/rootReducer' import { useNextQuestionUrl } from '@/store/selectors/companyStatusSelectors' -import { SimulateurCard } from '../../../Simulateurs/Home' import créerSvg from './créer.svg' export default function ChoixStatutJuridique() { diff --git a/site/source/pages/assistants/index.tsx b/site/source/pages/assistants/index.tsx index 80f3f16bb..04acd3dac 100644 --- a/site/source/pages/assistants/index.tsx +++ b/site/source/pages/assistants/index.tsx @@ -28,11 +28,10 @@ export default function Gérer() { - {/* TODO Navigate to /simu-et-assist */} + } />