From 2e0b06ddb9673e56a0c301199b1acf500ea61b97 Mon Sep 17 00:00:00 2001 From: bepyan Date: Sat, 24 Aug 2024 01:59:58 +0900 Subject: [PATCH] chore: remove theme in dashboard --- src/app/(main)/dashboard/page.tsx | 4 +--- src/components/providers.tsx | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/(main)/dashboard/page.tsx b/src/app/(main)/dashboard/page.tsx index 7a3c67d..6835f9c 100644 --- a/src/app/(main)/dashboard/page.tsx +++ b/src/app/(main)/dashboard/page.tsx @@ -4,7 +4,6 @@ import { redirect } from "next/navigation"; import InvitationItem from "~/app/(main)/dashboard/invitation-item"; import TemplateItem from "~/app/(main)/dashboard/template-item"; import ProfileDropDown from "~/components/profile-dropdown"; -import ThemeDropdown from "~/components/theme-dropdown"; import { getAuth } from "~/lib/auth/utils"; import { getInvitationsByAuth } from "~/lib/db/schema/invitations.query"; import { getAllTemplates } from "~/lib/db/schema/templates.query"; @@ -40,13 +39,12 @@ export default async function Page() { return (
{/* header */} -
+
logo Invi
diff --git a/src/components/providers.tsx b/src/components/providers.tsx index 23de4d7..1fee9e1 100644 --- a/src/components/providers.tsx +++ b/src/components/providers.tsx @@ -44,8 +44,9 @@ export default function Providers({ children }: { children: ReactNode }) { const queryClient = getQueryClient(); const pathname = usePathname(); - const forcedThemeFromPathname = - pathname === "/" || pathname === "/sign-in" ? "light" : undefined; + const forcedThemeFromPathname = !pathname.startsWith("/i/") + ? "light" + : undefined; return (