Skip to content

Commit

Permalink
fix(docs): opening links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
chanceaclark committed Nov 11, 2019
1 parent c5192b9 commit e6fce3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docs/components/NextLink/NextLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const NextLink: React.FC<{ href: string; as?: string }> = props => {

return (
<NLink href={href} as={getLinkAs(as)}>
{typeof children === 'string' ? <Link>{children}</Link> : children}
{typeof children === 'string' ? <Link href="">{children}</Link> : children}
</NLink>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const StyledLink = styled(Link)`
export const SideNavLink: React.FC<{ href: string; as?: string }> = props => (
<List.Item>
<NextLink href={props.href} as={props.as}>
<StyledLink>{props.children}</StyledLink>
<StyledLink href="">{props.children}</StyledLink>
</NextLink>
</List.Item>
);

0 comments on commit e6fce3e

Please sign in to comment.