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

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

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