From f0957175fbb94c4a60e9cd19c6713afd149877bf Mon Sep 17 00:00:00 2001 From: nicosampler Date: Tue, 17 Nov 2020 11:21:28 -0300 Subject: [PATCH] Pass extra props to Card --- src/dataDisplay/Card/index.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/dataDisplay/Card/index.tsx b/src/dataDisplay/Card/index.tsx index 7640ad2c..3c5cdf07 100644 --- a/src/dataDisplay/Card/index.tsx +++ b/src/dataDisplay/Card/index.tsx @@ -12,11 +12,16 @@ const StyledCard = styled.div` type Props = { className?: string; - children: React.ReactNode; -}; +} & React.HTMLAttributes; -const Card = ({ className, children }: Props): React.ReactElement => ( - {children} +const Card: React.FC = ({ + className, + children, + ...rest +}): React.ReactElement => ( + + {children} + ); export default Card;