Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(Card): Prevent overriding variant/size props, #103
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Sep 1, 2020
1 parent 8dc344f commit 6722f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ const Card = forwardRef(({variant, size, ...otherProps}, ref) => {
return (
<ThemedBox
ref={ref}
borderRadius={size}
width="100%"
overflow="hidden"
{...variantProps[variant]}
{...otherProps}
borderRadius={size}
{...variantProps[variant]}
/>
);
});
Expand Down

0 comments on commit 6722f19

Please sign in to comment.