Skip to content

Commit

Permalink
(edit) adjust the spacing for WarningCard
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomione committed Sep 18, 2023
1 parent 6200cf5 commit 647aa05
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions client/src/components/WarningCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,29 @@ import { WarningText } from 'components/WarningText'

export const WarningCard = ({ label, children }) => {
return (
<CardBandLarge
align="center"
elevation="small"
pad={{ top: 'xxlarge' }}
width="100%"
>
<Box margin={{ bottom: 'medium' }}>
<WarningText
iconColor="error"
iconNoFill
iconMargin="none"
iconSize="24px"
text={
<Text color="error" size="24px" weight="bold">
{label}
</Text>
}
/>
</Box>
{children}
</CardBandLarge>
<Box margin={{ top: 'xxlarge' }} fill>
<CardBandLarge
align="center"
elevation="small"
pad={{ top: 'xxlarge' }}
width="100%"
>
<Box margin={{ bottom: 'medium' }}>
<WarningText
iconColor="error"
iconNoFill
iconMargin="none"
iconSize="24px"
text={
<Text color="error" size="24px" weight="bold">
{label}
</Text>
}
/>
</Box>
{children}
</CardBandLarge>
</Box>
)
}

Expand Down

0 comments on commit 647aa05

Please sign in to comment.