Skip to content

Commit

Permalink
fix: Remove arbitrary "z" & add prefetch to router
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbrembeck committed Nov 7, 2024
1 parent 55e0243 commit c045db2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/app/[locale]/more/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ export default function More() {
</div>
</div>

<Link href="/tos" className="Grid links">
<Link prefetch={true} href="/tos" className="Grid links">
<div className="Grid-cell description">{t("tos")}</div>
<div className="Grid-cell icons">
<span className="unknown icon-right-open" />
</div>
</Link>

<Link href="privacy-policy" className="Grid links">
<Link prefetch={true} href="privacy-policy" className="Grid links">
<div className="Grid-cell description">{t("privacypolicy")}</div>
<div className="Grid-cell icons">
<span className="unknown icon-right-open" />
Expand All @@ -113,7 +113,7 @@ export default function More() {
</div>
</a>

<Link href="impressum" className="Grid links">
<Link prefetch={true} href="impressum" className="Grid links">
<div className="Grid-cell description">{t("imprint")}</div>
<div className="Grid-cell icons">
<span className="unknown icon-right-open" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/elements/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Container({
{backButton && <BackButton />}
{logo && (
<>
<Link href="/">
<Link prefetch={true} href="/">
<Image
src="/./img/Veganify.svg"
alt="Logo"
Expand Down
1 change: 0 additions & 1 deletion src/components/elements/modalwrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const ModalWrapper = ({

return (
<>
z
<ButtonComponent
data-target={id}
data-toggle="modal"
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const NavItem = ({
isActive: boolean;
}) => (
<div className={`flex-item ${isActive ? "active" : ""}`}>
<Link href={href}>
<Link prefetch={true} href={href}>
<span className={`icon ${iconClass}`}></span>
<span className="menu-item">{translationKey}</span>
</Link>
Expand Down

0 comments on commit c045db2

Please sign in to comment.