Skip to content

Commit

Permalink
(edit) rename ContributePageCard to WarningCard and define props and …
Browse files Browse the repository at this point in the history
…add the dropshadow
  • Loading branch information
nozomione committed Sep 14, 2023
1 parent 5996897 commit 71d3ff4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 47 deletions.
47 changes: 0 additions & 47 deletions client/src/components/ContributePageCard.js

This file was deleted.

31 changes: 31 additions & 0 deletions client/src/components/WarningCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from 'react'
import { Box, Text } from 'grommet'
import { CardBandLarge } from 'components/Band'
import { WarningText } from 'components/WarningText'

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

export default WarningCard

0 comments on commit 71d3ff4

Please sign in to comment.