From c0e3615e7615b32827959aded4857c4c8d4e64d8 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 18 Dec 2022 18:21:46 -0600 Subject: [PATCH] Move GA into root of App --- src/pages/_app.tsx | 14 +++++++++----- src/pages/index.tsx | 1 - 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 8923a53..7789140 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,11 +1,15 @@ -import { type AppType } from "next/app"; +import {type AppType} from "next/app"; -import { trpc } from "@/utils/trpc"; +import {trpc} from "@/utils/trpc"; import "@/styles/globals.scss"; +import {GoogleAnalytics} from "nextjs-google-analytics"; -const MyApp: AppType = ({ Component, pageProps }) => { - return ; +const App: AppType = ({Component, pageProps}) => { + return <> + + ; + }; -export default trpc.withTRPC(MyApp); +export default trpc.withTRPC(App); diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 9d437fc..b43138c 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -13,7 +13,6 @@ const Home: NextPage = () => { return ( <> - 100prisoners.com