Add Auth for WebPage and APIs
This commit is contained in:
parent
e6b87f89ec
commit
5e6d0e0ee6
27 changed files with 15384 additions and 1720 deletions
|
|
@ -5,6 +5,7 @@ import { cn } from '@/lib/utils';
|
|||
import Sidebar from '@/components/Sidebar';
|
||||
import { Toaster } from 'sonner';
|
||||
import ThemeProvider from '@/components/theme/Provider';
|
||||
import AuthCheck from '@/components/AuthCheck';
|
||||
|
||||
const montserrat = Montserrat({
|
||||
weight: ['300', '400', '500', '700'],
|
||||
|
|
@ -28,7 +29,9 @@ export default function RootLayout({
|
|||
<html className="h-full" lang="en" suppressHydrationWarning>
|
||||
<body className={cn('h-full', montserrat.className)}>
|
||||
<ThemeProvider>
|
||||
<Sidebar>{children}</Sidebar>
|
||||
<AuthCheck>
|
||||
<Sidebar>{children}</Sidebar>
|
||||
</AuthCheck>
|
||||
<Toaster
|
||||
toastOptions={{
|
||||
unstyled: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue