Skip to content

Commit

Permalink
feat: Ajout de la sélection d'année de simulation aux simulateurs
Browse files Browse the repository at this point in the history
- artistes-auteurs
- dividendes
- salarié
- SASU
  • Loading branch information
liliced committed Nov 18, 2024
1 parent f140651 commit e9919ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion site/source/pages/simulateurs/dividendes/Dividendes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -22,7 +23,10 @@ export default function DividendesSimulation() {
return (
<>
<Notifications />
<Simulation explanations={<DividendesExplanation />}>
<Simulation
explanations={<DividendesExplanation />}
afterQuestionsSlot={<SelectSimulationYear />}
>
<SimulateurWarning simulateur="dividendes" />
<DividendesSimulationGoals />
</Simulation>
Expand Down
6 changes: 5 additions & 1 deletion site/source/pages/simulateurs/sasu/SASU.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 />}
Expand Down

0 comments on commit e9919ed

Please sign in to comment.