Skip to content

Commit

Permalink
chore(@clayui/label): improve forwardRef types
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Sep 5, 2019
1 parent ea6c181 commit 092f2d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/clay-label/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ const ClayLabel: React.FunctionComponent<IProps> = ({
);
};

export default React.forwardRef((props: IProps, ref?) => (
<ClayLabel {...props} forwardRef={ref} />
));
export default React.forwardRef<HTMLAnchorElement | HTMLSpanElement, IProps>(
(props: IProps, ref?) => <ClayLabel {...props} forwardRef={ref} />
);

0 comments on commit 092f2d9

Please sign in to comment.