mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore(FE-40): use RequireAuth in root layout
This commit is contained in:
+5
-1
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user