diff --git a/frontend/src/app/admin/layout.tsx b/frontend/src/app/admin/layout.tsx index adebb24..67e9127 100644 --- a/frontend/src/app/admin/layout.tsx +++ b/frontend/src/app/admin/layout.tsx @@ -1,5 +1,6 @@ 'use client' +import dynamic from 'next/dynamic' import ProtectedRoute from '@/components/ProtectedRoute' import { AuthProvider, useAuth } from '@/contexts/AuthContext' import Link from 'next/link' @@ -108,12 +109,25 @@ function AdminLayoutContent({ children }: { children: React.ReactNode }) { ) } + +const AdminLayoutClient = dynamic( + () => + Promise.resolve(function AdminLayoutClient({ + children + }: { + children: React.ReactNode + }) { + return ( + + + {children} + + + ) + }), + { ssr: false } +) + export default function AdminLayout({ children }: { children: React.ReactNode }) { - return ( - - - {children} - - - ) + return {children} } \ No newline at end of file