copied the code from the working repo
This commit is contained in:
36
mtucijobsweb2/app/layout.tsx
Normal file
36
mtucijobsweb2/app/layout.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { Inter } from 'next/font/google';
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
import '../fsd/app/styles/global.scss';
|
||||
import AppHeader from '@/fsd/widgets/Header/Header';
|
||||
import ClientProvider from '@/fsd/app/provider/QueryClient';
|
||||
import { AuthProvider } from '@/fsd/app/provider/AuthContext';
|
||||
import AuthGuard from "@/fsd/app/provider/AuthGuard"
|
||||
import RedirectPage from '@/fsd/pages/RedirectPage';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'MTUCI JOBS',
|
||||
description: 'Project for mtuci jobs',
|
||||
icons: {
|
||||
icon: '/favicon.svg'
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<ClientProvider>
|
||||
<html lang='en'>
|
||||
<AuthProvider>
|
||||
<body className={inter.className}>
|
||||
<AppHeader />
|
||||
<AuthGuard>{children}</AuthGuard>
|
||||
</body>
|
||||
</AuthProvider>
|
||||
</html>
|
||||
</ClientProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user