From 86a14713e0bad6fe1f3e814361d829807055afd9 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 4 Jun 2026 08:27:27 -0500 Subject: [PATCH] fix: make root layout a server component with globals.css import and html/body tags --- admin/src/app/layout.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/admin/src/app/layout.tsx b/admin/src/app/layout.tsx index 201f369..eb3543c 100644 --- a/admin/src/app/layout.tsx +++ b/admin/src/app/layout.tsx @@ -1,17 +1,21 @@ -'use client'; +import './globals.css'; import { AuthProvider } from '@/lib/auth'; import AuthGuard from '@/components/auth-guard'; import Sidebar from '@/components/sidebar'; import { Toaster } from '@/components/ui/sonner'; -export default function AppLayout({ children }: { children: React.ReactNode }) { +export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - - - {children} - - - + + + + + {children} + + + + + ); }