feat: Ajout de la sélection d'année de simulation aux simulateurs
- artistes-auteurs - dividendes - salarié - SASUpull/3222/head
parent
f140651fc1
commit
e9919ed3ad
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 />}
|
||||
|
|
Loading…
Reference in New Issue