feat: Ajout de la sélection d'année de simulation aux simulateurs

- artistes-auteurs
- dividendes
- salarié
- SASU
pull/3222/head
Alice Dahan 2024-11-15 09:51:30 +01:00 committed by liliced
parent f140651fc1
commit e9919ed3ad
3 changed files with 15 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import { useLocation } from 'react-router-dom'
import { Condition } from '@/components/EngineValue/Condition'
import PeriodSwitch from '@/components/PeriodSwitch'
import { SelectSimulationYear } from '@/components/SelectSimulationYear'
import SimulateurWarning from '@/components/SimulateurWarning'
import Simulation, {
SimulationGoal,
@ -23,7 +24,10 @@ export default function ArtisteAuteur() {
return (
<>
<Simulation explanations={<CotisationsResult />}>
<Simulation
explanations={<CotisationsResult />}
afterQuestionsSlot={<SelectSimulationYear />}
>
<SimulateurWarning simulateur="artiste-auteur" />
<SimulationGoals
legend="Vos revenus d'artiste auteur"

View File

@ -6,6 +6,7 @@ import { useTheme } from 'styled-components'
import { Condition } from '@/components/EngineValue/Condition'
import Notifications from '@/components/Notifications'
import { SelectSimulationYear } from '@/components/SelectSimulationYear'
import SimulateurWarning from '@/components/SimulateurWarning'
import Simulation, {
SimulationGoal,
@ -22,7 +23,10 @@ export default function DividendesSimulation() {
return (
<>
<Notifications />
<Simulation explanations={<DividendesExplanation />}>
<Simulation
explanations={<DividendesExplanation />}
afterQuestionsSlot={<SelectSimulationYear />}
>
<SimulateurWarning simulateur="dividendes" />
<DividendesSimulationGoals />
</Simulation>

View File

@ -2,6 +2,7 @@ import { Trans } from 'react-i18next'
import PeriodSwitch from '@/components/PeriodSwitch'
import RuleLink from '@/components/RuleLink'
import { SelectSimulationYear } from '@/components/SelectSimulationYear'
import SimulateurWarning from '@/components/SimulateurWarning'
import Simulation, {
SimulationGoal,
@ -14,7 +15,10 @@ import { Body } from '@/design-system/typography/paragraphs'
export function SASUSimulation() {
return (
<>
<Simulation explanations={<SalaryExplanation />}>
<Simulation
explanations={<SalaryExplanation />}
afterQuestionsSlot={<SelectSimulationYear />}
>
<SimulateurWarning simulateur="sasu" />
<SimulationGoals
toggles={<PeriodSwitch />}