1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-23 08:04:28 -04:00

move <Layout> to _app.tsx so it's not rerendered

This commit is contained in:
2022-01-07 09:57:32 -05:00
parent 34d2304e7c
commit 354d767fc5
15 changed files with 388 additions and 328 deletions

View File

@@ -3,8 +3,7 @@ import { useRouter } from "next/router";
import { ThemeProvider } from "next-themes";
import { DefaultSeo, SocialProfileJsonLd } from "next-seo";
import * as Fathom from "fathom-client";
import Header from "../components/page-header/Header";
import Footer from "../components/page-footer/Footer";
import Layout from "../components/Layout";
import * as config from "../lib/config";
import type { AppProps } from "next/app";
@@ -184,9 +183,9 @@ const App = ({ Component, pageProps }: AppProps) => {
/>
<ThemeProvider>
<Header />
<Component {...pageProps} />
<Footer />
<Layout>
<Component {...pageProps} />
</Layout>
</ThemeProvider>
</>
);