diff --git a/dashboard/15-final/app/layout.tsx b/dashboard/15-final/app/layout.tsx index b4181a1e..ad7c087d 100644 --- a/dashboard/15-final/app/layout.tsx +++ b/dashboard/15-final/app/layout.tsx @@ -1,7 +1,7 @@ import './global.css'; import type { Metadata } from 'next'; import { Inter } from 'next/font/google'; -import { AuthProvider } from './providers'; +import Providers from './providers'; const inter = Inter({ subsets: ['latin'] }); @@ -18,7 +18,7 @@ export default function RootLayout({ return ( - {children} + {children} ); diff --git a/dashboard/15-final/app/providers.tsx b/dashboard/15-final/app/providers.tsx index 857fa05b..db649c38 100644 --- a/dashboard/15-final/app/providers.tsx +++ b/dashboard/15-final/app/providers.tsx @@ -2,6 +2,6 @@ import { SessionProvider } from 'next-auth/react'; -export const AuthProvider = ({ children }) => { +export default function Providers({ children }: { children: React.ReactNode }) { return {children}; -}; +}