Add layout

This commit is contained in:
Liam 2022-11-14 00:08:46 +00:00
parent 6d7cd07769
commit 53d8eb5bcf
2 changed files with 11 additions and 5 deletions

3
src/components/Layout.js Normal file
View File

@ -0,0 +1,3 @@
export default function Layout({ children }) {
return <div className="h-screen bg-[#080808]">{children}</div>;
}

View File

@ -2,14 +2,17 @@ import "../styles/globals.css";
import { NextUIProvider } from "@nextui-org/react";
import { SessionProvider } from "next-auth/react";
import Layout from "src/components/Layout";
function MyApp({ Component, pageProps: { session, ...pageProps } }) {
return (
<SessionProvider session={session}>
<NextUIProvider>
<Component {...pageProps} />
</NextUIProvider>
</SessionProvider>
<Layout>
<SessionProvider session={session}>
<NextUIProvider>
<Component {...pageProps} />
</NextUIProvider>
</SessionProvider>
</Layout>
);
}