Skip to content

Commit

Permalink
ui(indépendant): ajout d'un espace entre l'imposition et les objectif…
Browse files Browse the repository at this point in the history
…s dans le simulateur cessation d'activité
  • Loading branch information
JalilArfaoui committed Dec 9, 2024
1 parent f875cad commit c5a2b5d
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions site/source/pages/simulateurs/cessation-activité/Toggles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ const CessationBlock = styled.div`
align-items: start;
`

const ImpositionBlock = styled.div`
margin-bottom: 0.5rem;
`

export const CessationActivitéToggles = () => {
const dispatch = useDispatch()
const engine = useEngine()
Expand Down Expand Up @@ -53,19 +57,21 @@ export const CessationActivitéToggles = () => {
<DefaultValue dottedName={'entreprise . date de cessation'} />
</CessationBlock>

<RuleInput
inputType="toggle"
hideDefaultValue
missing={false}
dottedName="entreprise . imposition"
onChange={(imposition) => {
dispatch(
ajusteLaSituation({
'entreprise . imposition': imposition,
} as Record<DottedName, SimpleRuleEvaluation>)
)
}}
/>
<ImpositionBlock>
<RuleInput
inputType="toggle"
hideDefaultValue
missing={false}
dottedName="entreprise . imposition"
onChange={(imposition) => {
dispatch(
ajusteLaSituation({
'entreprise . imposition': imposition,
} as Record<DottedName, SimpleRuleEvaluation>)
)
}}
/>
</ImpositionBlock>
</Wrapper>
)
}

0 comments on commit c5a2b5d

Please sign in to comment.