Add next-seo template

This commit is contained in:
Lee 2022-11-17 05:58:59 +00:00
parent 5743271503
commit b17848fdfb
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -2,17 +2,22 @@ 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 { NextSeo } from "next-seo";
import Layout from "src/components/Layout"; import Layout from "src/components/Layout";
import { darkTheme } from "src/consts/themes";
function MyApp({ Component, pageProps: { session, ...pageProps } }) { function MyApp({ Component, pageProps: { session, ...pageProps } }) {
return ( return (
<Layout> <NextUIProvider theme={darkTheme}>
<SessionProvider session={session}> <NextSeo titleTemplate="%s | Imageify" />
<NextUIProvider> <Layout>
<Component {...pageProps} /> <SessionProvider session={session}>
</NextUIProvider> <NextUIProvider>
</SessionProvider> <Component {...pageProps} />
</Layout> </NextUIProvider>
</SessionProvider>
</Layout>
</NextUIProvider>
); );
} }