Added Basic Darkmode and Fixed Small Bugs

This commit is contained in:
Ahmad 2025-01-13 19:12:06 -05:00
parent aacca3d141
commit 94fb5c7eb1
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
42 changed files with 593 additions and 72 deletions

View file

@ -1,14 +1,25 @@
'use client';
import { Toaster } from 'sonner';
import { ClerkProvider } from '@clerk/nextjs';
import { dark } from '@clerk/themes';
import { useTheme } from 'next-themes';
import { ModalProvider } from '@/components/providers/modal-provider';
import { QueryProvider } from '@/components/providers/query-provider';
const PlatformLayout = ({ children }: { children: React.ReactNode }) => {
const { theme } = useTheme();
return (
<ClerkProvider afterSignOutUrl='/'>
<ClerkProvider
afterSignOutUrl='/'
appearance={{
baseTheme: theme === 'dark' ? dark : undefined,
}}
>
<QueryProvider>
<Toaster />
<Toaster theme='system' />
<ModalProvider />
{children}
</QueryProvider>