Skip to content

Commit

Permalink
fix:move content of index.html to layout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Oct 24, 2023
1 parent d208f62 commit 0fd4517
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 33 deletions.
21 changes: 0 additions & 21 deletions public/index.html

This file was deleted.

38 changes: 26 additions & 12 deletions src/app/layout.tsx
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>
)
);
}

0 comments on commit 0fd4517

Please sign in to comment.