feat(theme-components): use default exports

This commit is contained in:
ItzCrazyKns 2024-05-31 11:02:00 +05:30
parent 90f9edea95
commit dcbcab3122
No known key found for this signature in database
GPG key ID: 8162927C7CCE3065
6 changed files with 13 additions and 10 deletions

View file

@ -4,7 +4,7 @@ import './globals.css';
import { cn } from '@/lib/utils';
import Sidebar from '@/components/Sidebar';
import { Toaster } from 'sonner';
import { ThemeProviderComponent } from '@/components/theme/Provider';
import ThemeProvider from '@/components/theme/Provider';
const montserrat = Montserrat({
weight: ['300', '400', '500', '700'],
@ -27,7 +27,7 @@ export default function RootLayout({
return (
<html className="h-full" lang="en" suppressHydrationWarning>
<body className={cn('h-full', montserrat.className)}>
<ThemeProviderComponent>
<ThemeProvider>
<Sidebar>{children}</Sidebar>
<Toaster
toastOptions={{
@ -38,7 +38,7 @@ export default function RootLayout({
},
}}
/>
</ThemeProviderComponent>
</ThemeProvider>
</body>
</html>
);