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

static header and footer were being re-rendered on every route change

This commit is contained in:
2022-01-06 19:58:07 -05:00
parent 66a244a9c1
commit 17375ef876
19 changed files with 2515 additions and 2572 deletions

View File

@@ -3,6 +3,8 @@ 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 * as config from "../lib/config";
import type { AppProps } from "next/app";
@@ -182,7 +184,9 @@ const App = ({ Component, pageProps }: AppProps) => {
/>
<ThemeProvider>
<Header />
<Component {...pageProps} />
<Footer />
</ThemeProvider>
</>
);