-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove prop
variant
from Card. Set bg='light'and color='default'
- Loading branch information
1 parent
afae919
commit 5a6e4a8
Showing
9 changed files
with
10 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,8 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import type { FC } from 'react'; | ||
|
||
type CardProps = { | ||
variant?: 'light' | 'tint'; | ||
}; | ||
|
||
const Card: FC<CardProps> = ({ variant, ...props }: CardProps) => ( | ||
<Box | ||
borderRadius='x8' | ||
p='x20' | ||
height='full' | ||
display='flex' | ||
flexDirection='column' | ||
backgroundColor={variant === 'light' ? 'light' : 'tint'} | ||
{...props} | ||
/> | ||
const Card: FC = (props) => ( | ||
<Box borderRadius='x8' p='x20' height='full' display='flex' flexDirection='column' bg='light' color='default' {...props} /> | ||
); | ||
|
||
export default Card; |