Skip to content

Commit

Permalink
bug(ChargeAccordion) fix spacing with the Alert and content
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Oct 9, 2023
1 parent 2ff78cd commit 093d44a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/plans/ChargeAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ export const ChargeAccordion = memo(
{/* Charge main infos */}
<ChargeModelWrapper data-test="charge-model-wrapper">
{!!shouldDisplayAlreadyUsedChargeAlert && (
<Alert type="warning">{translate('text_6435895831d323008a47911f')}</Alert>
<ChargeModelWrapperAlert type="warning">
{translate('text_6435895831d323008a47911f')}
</ChargeModelWrapperAlert>
)}
<ComboBox
sortValues={false}
Expand Down Expand Up @@ -1049,6 +1051,10 @@ const ChargeModelWrapper = styled.div`
padding: ${theme.spacing(4)} ${theme.spacing(4)} 0 ${theme.spacing(4)};
`

const ChargeModelWrapperAlert = styled(Alert)`
margin-bottom: ${theme.spacing(4)};
`

const Title = styled.div`
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 093d44a

Please sign in to comment.