-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:move content of index.html to layout.tsx
- Loading branch information
Showing
2 changed files
with
26 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
import StoreProvider from "@/store" | ||
import StoreProvider from '@/store'; | ||
import React from 'react'; | ||
import { Flip, ToastContainer } from 'react-toastify'; | ||
import '/public/fontawesome/css/all.min.css' | ||
|
||
export const metadata = { | ||
title: 'Next.js', | ||
description: 'Generated by Next.js', | ||
} | ||
charset: 'utf-8', | ||
title: 'TurboBouffe', | ||
description: "Site de gestion de la bouffe de l'UA", | ||
icons: { | ||
icon: '/favicon.ico', | ||
apple: '/logo192.png' | ||
}, | ||
themeColor: '#fb560c', | ||
manifest: '/manifest.json', | ||
viewport: { | ||
width: 'device-width', | ||
initialScale: 1, | ||
} | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
export default function RootLayout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<body><StoreProvider>{children}</StoreProvider></body> | ||
<html lang="fr"> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<StoreProvider>{children}</StoreProvider> | ||
<ToastContainer autoClose={3000} transition={Flip} hideProgressBar={true} pauseOnHover={true} /> | ||
</body> | ||
</html> | ||
) | ||
); | ||
} |