mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-11 03:02:56 -05:00
test new next/link behavior
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user