Wrap app with SessionProvider in root layout
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
import type { Metadata, Viewport } from "next/types";
|
import type { Metadata, Viewport } from "next/types";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
import Providers from "@/components/Providers";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
@@ -34,7 +35,7 @@ export default function RootLayout({
|
|||||||
<link rel="apple-touch-icon" href="/icons/icon-192x192.png" />
|
<link rel="apple-touch-icon" href="/icons/icon-192x192.png" />
|
||||||
</head>
|
</head>
|
||||||
<body className="bg-dark-900 text-white antialiased">
|
<body className="bg-dark-900 text-white antialiased">
|
||||||
{children}
|
<Providers>{children}</Providers>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user