From f2b8ddae8eed93e1dc1035b853101dfffa8e264c Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Fri, 24 May 2024 10:48:45 +0200 Subject: [PATCH] debug: add prefetch=false to logout link --- components/MyPages/Sidebar/index.tsx | 2 +- components/TempDesignSystem/Link/index.tsx | 10 +++++++++- components/TempDesignSystem/Link/link.ts | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/components/MyPages/Sidebar/index.tsx b/components/MyPages/Sidebar/index.tsx index ebb5047b5..44051d20f 100644 --- a/components/MyPages/Sidebar/index.tsx +++ b/components/MyPages/Sidebar/index.tsx @@ -44,7 +44,7 @@ export default async function Sidebar({ lang }: LangParams) { ))} - + Log out diff --git a/components/TempDesignSystem/Link/index.tsx b/components/TempDesignSystem/Link/index.tsx index fb2fe3eca..3d6fbbae0 100644 --- a/components/TempDesignSystem/Link/index.tsx +++ b/components/TempDesignSystem/Link/index.tsx @@ -11,6 +11,7 @@ export default function Link({ href, partialMatch = false, size, + prefetch, variant, ...props }: LinkProps) { @@ -25,5 +26,12 @@ export default function Link({ size, variant, }) - return + return ( + + ) } diff --git a/components/TempDesignSystem/Link/link.ts b/components/TempDesignSystem/Link/link.ts index 77a1069c3..599d6b32e 100644 --- a/components/TempDesignSystem/Link/link.ts +++ b/components/TempDesignSystem/Link/link.ts @@ -7,4 +7,5 @@ export interface LinkProps VariantProps { href: string partialMatch?: boolean + prefetch?: boolean }