diff --git a/src/app/dashboard/layout.tsx b/src/app/dashboard/layout.tsx index 06295d2..5ca4783 100644 --- a/src/app/dashboard/layout.tsx +++ b/src/app/dashboard/layout.tsx @@ -1,4 +1,4 @@ -import { AppShell, AppShellHeader, Burger } from "@mantine/core"; +import { AppShell, AppShellHeader, Burger, MantineProvider } from "@mantine/core"; import { useDisclosure } from "@mantine/hooks"; import Image from "next/image"; import React from "react"; @@ -6,6 +6,7 @@ import logo from "@/assets/logos/logo.png"; import DashboardLayout from "@/modules/dashboard/components/DashboardLayout"; import getUser from "@/modules/auth/actions/getUser"; import { redirect } from "next/navigation"; +import { Notifications } from "@mantine/notifications"; interface Props { children: React.ReactNode; @@ -18,5 +19,10 @@ export default async function Layout(props: Props) { redirect("/login"); } - return {props.children}; + return ( + + + {props.children} + + ); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 89e0dec..265823d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,8 +5,7 @@ import "./globals.css"; import "@mantine/core/styles.css"; import '@mantine/notifications/styles.css'; -import { ColorSchemeScript, MantineProvider } from "@mantine/core"; -import { Notifications } from "@mantine/notifications"; +import { ColorSchemeScript } from "@mantine/core"; import { AuthContextProvider } from "@/modules/auth/contexts/AuthContext"; const inter = Inter({ subsets: ["latin"] }); @@ -27,10 +26,7 @@ export default function RootLayout({ - - {children} - );