Add layout
This commit is contained in:
parent
6d7cd07769
commit
53d8eb5bcf
3
src/components/Layout.js
Normal file
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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user