diff options
| author | 2023-05-03 01:09:49 +0800 | |
|---|---|---|
| committer | 2023-05-03 01:09:49 +0800 | |
| commit | a2f8df3b14979f74c03a79b2ffaf081739837899 (patch) | |
| tree | f2d8e8eb2a3d323502ebcec0a7d02ae9a8daed01 /docs/components/SiteSwitcher.tsx | |
| parent | fade13d683c0420d83f523703d7038edbefe97f6 (diff) | |
| download | HydroRoll-a2f8df3b14979f74c03a79b2ffaf081739837899.tar.gz HydroRoll-a2f8df3b14979f74c03a79b2ffaf081739837899.zip | |
Diffstat (limited to 'docs/components/SiteSwitcher.tsx')
| -rw-r--r-- | docs/components/SiteSwitcher.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/components/SiteSwitcher.tsx b/docs/components/SiteSwitcher.tsx index e5d58d2..6f6ba15 100644 --- a/docs/components/SiteSwitcher.tsx +++ b/docs/components/SiteSwitcher.tsx @@ -2,17 +2,17 @@ import cn from "classnames"; import { useRouter } from "next/router"; import Link from "next/link"; -export type TurboSite = "pack" | "repo"; +export type TurboSite = "TRPG" | "AI"; export function useTurboSite(): TurboSite | undefined { const { pathname } = useRouter(); - if (pathname.startsWith("/repo")) { - return "repo"; + if (pathname.startsWith("/AI")) { + return "AI"; } - if (pathname.startsWith("/pack")) { - return "pack"; + if (pathname.startsWith("/TRPG")) { + return "TRPG"; } return undefined; @@ -45,7 +45,7 @@ function SiteSwitcher() { "indeterminate:after:hidden", { "after:hidden": !site, - "after:translate-x-[46px]": site === "pack", + "after:translate-x-[46px]": site === "TRPG", } )} /> @@ -56,8 +56,8 @@ function SiteSwitcher() { { "hover:text-black dark:hover:text-white": site } )} > - <SiteSwitcherLink href="/repo" text="Repo" isActive={site === "repo"} /> - <SiteSwitcherLink href="/pack" text="Pack" isActive={site === "pack"} /> + <SiteSwitcherLink href="/AI" text="AI" isActive={site === "AI"} /> + <SiteSwitcherLink href="/TRPG" text="TRPG" isActive={site === "TRPG"} /> </span> </div> ); |
