From 23961c8865653f47da35a78f9f7055cce9517755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Wed, 13 Nov 2024 22:20:38 +0100 Subject: [PATCH] fix(dashboard): remove force color scheme since it breaks the build --- apps/dashboard/src/app/providers.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/apps/dashboard/src/app/providers.tsx b/apps/dashboard/src/app/providers.tsx index e4a86b11..7c7c4e23 100644 --- a/apps/dashboard/src/app/providers.tsx +++ b/apps/dashboard/src/app/providers.tsx @@ -1,11 +1,13 @@ 'use client'; +import { NotificationProvider } from '@/components/notifications/notification-provider'; import { TooltipProvider } from '@/components/ui/tooltip'; import { ModalProvider } from '@/modals'; import type { AppStore } from '@/redux'; import makeStore from '@/redux'; import { api } from '@/trpc/client'; import { ClerkProvider, useAuth } from '@clerk/nextjs'; +import { OpenPanelComponent } from '@openpanel/nextjs'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { httpLink } from '@trpc/client'; import { ThemeProvider } from 'next-themes'; @@ -15,12 +17,7 @@ import { Provider as ReduxProvider } from 'react-redux'; import { Toaster } from 'sonner'; import superjson from 'superjson'; -import { NotificationProvider } from '@/components/notifications/notification-provider'; -import { OpenPanelComponent } from '@openpanel/nextjs'; -import { useSearchParams } from 'next/navigation'; - function AllProviders({ children }: { children: React.ReactNode }) { - const searchParams = useSearchParams(); const { getToken } = useAuth(); const [queryClient] = useState( () => @@ -60,16 +57,12 @@ function AllProviders({ children }: { children: React.ReactNode }) { storeRef.current = makeStore(); } - const forcedTheme = searchParams.get('colorScheme'); - return ( {process.env.NEXT_PUBLIC_OP_CLIENT_ID && (