chore(FE-40): use RequireAuth in root layout

This commit is contained in:
ValdiANS
2025-10-01 15:00:06 +07:00
parent 6924aef8c4
commit 8a6a1e6b5c
+5 -1
View File
@@ -1,7 +1,9 @@
import type { Metadata, Viewport } from 'next';
import { Inter } from 'next/font/google';
import '@/app/globals.css';
import MainDrawer from '@/components/MainDrawer';
import RequireAuth from '@/components/helper/RequireAuth';
const inter = Inter({
variable: '--font-inter',
@@ -27,7 +29,9 @@ export default function RootLayout({
return (
<html lang='en'>
<body className={`${inter.variable} antialiased font-inter`}>
<MainDrawer>{children}</MainDrawer>
<RequireAuth>
<MainDrawer>{children}</MainDrawer>
</RequireAuth>
</body>
</html>
);