Skip to content

Commit

Permalink
fix(TextLink): props type
Browse files Browse the repository at this point in the history
  • Loading branch information
LexSwed committed Oct 12, 2020
1 parent ab82714 commit c01bd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/TextLink/TextLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Link = styled(Flex, {

type AnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
type LinkProps = React.ComponentProps<typeof Link>;
type Props = AnchorProps & { external?: boolean; font: LinkProps['font']; size: LinkProps['size'] };
type Props = AnchorProps & LinkProps & { external?: boolean };

const TextLink = React.forwardRef<HTMLAnchorElement, Props>(
({ font = 'default', size = 'base', external, children, ...props }, ref) => {
Expand Down

1 comment on commit c01bd4f

@vercel
Copy link

@vercel vercel bot commented on c01bd4f Oct 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.