mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
prevent prefetch of login/logout
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -9,7 +9,6 @@ import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import About from "../(aboutAndPrivacy)/about";
|
||||
import Privacy from "../(aboutAndPrivacy)/privacy";
|
||||
import { get } from "@vercel/edge-config";
|
||||
import { DomainContextProvider } from "./domainContext";
|
||||
import { getConfig } from "../lib/edgeConfig";
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function TranscriptDetails(details: TranscriptDetails) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{transcript?.loading === true || topics?.loading === true ? (
|
||||
{!transcriptId || transcript?.loading || topics?.loading ? (
|
||||
<Modal title="Loading" text={"Loading transcript..."} />
|
||||
) : (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user