From 7ffdcd9acb5cb9b3ee5e5b489062e78566b98030 Mon Sep 17 00:00:00 2001 From: Vipin Ajayakumar Date: Mon, 27 May 2024 12:16:41 +0100 Subject: [PATCH] Initial setup for migration to Next app instead of pages --- src/app/AppBody.tsx | 46 ++++++++++++++++++ src/app/layout.tsx | 19 ++++++++ src/components/GoogleAnalytics.js | 24 ++++++++++ src/components/StandardSeo.js | 3 ++ src/modules/googleAnalytics.js | 10 ---- src/modules/metadata.ts | 78 +++++++++++++++++++++++++++++++ src/pages/_app.js | 56 ++-------------------- 7 files changed, 175 insertions(+), 61 deletions(-) create mode 100644 src/app/AppBody.tsx create mode 100644 src/app/layout.tsx create mode 100644 src/components/GoogleAnalytics.js delete mode 100644 src/modules/googleAnalytics.js create mode 100644 src/modules/metadata.ts diff --git a/src/app/AppBody.tsx b/src/app/AppBody.tsx new file mode 100644 index 0000000..b2b21d2 --- /dev/null +++ b/src/app/AppBody.tsx @@ -0,0 +1,46 @@ +import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles' +import CssBaseline from '@mui/material/CssBaseline' +import theme from '@Modules/theme' +import '@Styles/globals.css' +import { SpeedInsights } from '@vercel/speed-insights/next' + +import { StateProvider } from '@Modules/store' +import { GoogleAnalytics } from '@Components/GoogleAnalytics' +import SearchAppBar from '@Components/SearchAppBar/SearchAppBar' +import Footer from '@Components/Footer' +const Layout = ({ children }) => ( +
+ {children} +
+) + +const Content = ({ children }) => { + return
{children}
+} + +export const AppBody = ({ children }: { children: React.ReactNode }) => { + return ( + <> + + + + + + + + {children} +