1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-15 21:34:26 -04:00

enable experimental next/future/image (#973)

This commit is contained in:
2022-06-27 20:45:02 -04:00
committed by GitHub
parent a4602335a1
commit f826f59fcc
14 changed files with 183 additions and 184 deletions
+12 -5
View File
@@ -1,10 +1,9 @@
import NextLink from "next/link";
import Link from "../Link";
import { styled } from "../../lib/styles/stitches.config";
const Link = styled(NextLink, {
const MenuLink = styled(Link, {
display: "inline-block",
color: "$mediumDark",
textDecoration: "none",
padding: "0.6em",
variants: {
@@ -67,9 +66,17 @@ const MenuItem = ({ icon: ItemIcon, href, text, current, className }: MenuItemPr
// allow both navigational links and/or other interactive react components (e.g. the theme toggle)
if (href) {
return (
<Link href={href} prefetch={false} className={className} current={current} title={text} aria-label={text}>
<MenuLink
href={href}
prefetch={false}
className={className}
current={current}
title={text}
underline={false}
aria-label={text}
>
{linkContent}
</Link>
</MenuLink>
);
}