Skip to content

Commit

Permalink
ui(indépendant): ajustement des espacements au-dessus des objectifs d…
Browse files Browse the repository at this point in the history
…ans le simulateur cessation d'activité
  • Loading branch information
JalilArfaoui committed Dec 9, 2024
1 parent f875cad commit c3aa73f
Showing 1 changed file with 35 additions and 20 deletions.
55 changes: 35 additions & 20 deletions site/source/pages/simulateurs/cessation-activité/Toggles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ const CessationBlock = styled.div`
display: flex;
flex-direction: column;
align-items: start;
margin-bottom: -1rem;
margin-top: -3rem;
`

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

const CessationDateWrapper = styled.div`
margin-top: -1.5rem;
margin-bottom: -1.5rem;
`

export const CessationActivitéToggles = () => {
Expand All @@ -39,33 +50,37 @@ export const CessationActivitéToggles = () => {
)}
<ExplicableRule light dottedName={'entreprise . date de cessation'} />
</H3>
<CessationDateWrapper>
<RuleInput
dottedName="entreprise . date de cessation"
onChange={(date) => {
dispatch(
ajusteLaSituation({
'entreprise . date de cessation': date,
} as Record<DottedName, SimpleRuleEvaluation>)
)
}}
hideDefaultValue
/>
</CessationDateWrapper>
<DefaultValue dottedName={'entreprise . date de cessation'} />
</CessationBlock>

<ImpositionBlock>
<RuleInput
dottedName="entreprise . date de cessation"
onChange={(date) => {
inputType="toggle"
hideDefaultValue
missing={false}
dottedName="entreprise . imposition"
onChange={(imposition) => {
dispatch(
ajusteLaSituation({
'entreprise . date de cessation': date,
'entreprise . imposition': imposition,
} as Record<DottedName, SimpleRuleEvaluation>)
)
}}
hideDefaultValue
/>
<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>
</Wrapper>
)
}

0 comments on commit c3aa73f

Please sign in to comment.