feat: implement authentication flow with login page, middleware protection, and session-based role management
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Sidebar from "@/components/Sidebar";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
import LayoutContent from "@/components/LayoutContent";
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter",
|
||||
@@ -36,10 +36,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en" className={inter.variable} suppressHydrationWarning>
|
||||
<body className="min-h-screen bg-slate-50 antialiased" suppressHydrationWarning>
|
||||
<Sidebar />
|
||||
<main className="lg:ml-64 min-h-screen pb-20 lg:pb-0">
|
||||
{children}
|
||||
</main>
|
||||
<LayoutContent>{children}</LayoutContent>
|
||||
<Toaster position="top-right" />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user