prevent prefetch of login/logout

This commit is contained in:
Sara
2023-11-01 17:17:49 +01:00
committed by Mathieu Virbel
parent 0be1bbe96a
commit 1e262ff8b4
3 changed files with 3 additions and 4 deletions

View File

@@ -7,14 +7,14 @@ export default function UserInfo() {
return !isAuthenticated ? (
<span className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2">
<Link href="/login" className="outline-none">
<Link href="/login" className="outline-none" prefetch={false}>
Log in
</Link>
</span>
) : (
<span className="font-light px-2">
<span className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px]">
<Link href="/logout" className="outline-none">
<Link href="/logout" className="outline-none" prefetch={false}>
Log out
</Link>
</span>