1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04:00

test new next/link behavior

This commit is contained in:
2022-05-17 18:31:58 -04:00
parent a2f4112e06
commit d1f0030d3c
8 changed files with 37 additions and 60 deletions

View File

@@ -14,7 +14,7 @@ const Title = styled("h1", {
},
});
const Link = styled("a", {
const Link = styled(NextLink, {
color: "$text",
textDecoration: "none",
});
@@ -26,9 +26,7 @@ const PageTitle = ({ children, ...rest }: PageTitleProps) => {
return (
<Title {...rest}>
<NextLink href={router.pathname} passHref={true}>
<Link>{children}</Link>
</NextLink>
<Link href={router.pathname}>{children}</Link>
</Title>
);
};