Skip to content

Commit

Permalink
re-name sessionprovider compoennt
Browse files Browse the repository at this point in the history
  • Loading branch information
StephDietz committed Sep 20, 2023
1 parent 0c6408c commit dbc2216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard/15-final/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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'] });

Expand All @@ -18,7 +18,7 @@ export default function RootLayout({
return (
<html lang="en">
<body className={inter.className}>
<AuthProvider>{children}</AuthProvider>
<Providers>{children}</Providers>
</body>
</html>
);
Expand Down
4 changes: 2 additions & 2 deletions dashboard/15-final/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import { SessionProvider } from 'next-auth/react';

export const AuthProvider = ({ children }) => {
export default function Providers({ children }: { children: React.ReactNode }) {
return <SessionProvider>{children}</SessionProvider>;
};
}

0 comments on commit dbc2216

Please sign in to comment.