From a2f8df3b14979f74c03a79b2ffaf081739837899 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 3 May 2023 01:09:49 +0800 Subject: --- docs/components/SiteSwitcher.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/components/SiteSwitcher.tsx') 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 } )} > - - + + ); -- cgit v1.2.3-70-g09d2