Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Card): forwardRef to Card (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
cehsu authored and kylealwyn committed Mar 16, 2019
1 parent 113dc63 commit 0a3d976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const StyledCard = createComponent({
`,
});

const Card = props => <StyledCard {...props} />;
const Card = React.forwardRef((props, ref) => <StyledCard ref={ref} {...props} />);

Card.propTypes = {
shadow: PropTypes.bool,
Expand Down

0 comments on commit 0a3d976

Please sign in to comment.