diff --git a/pages/_app.tsx b/pages/_app.tsx index 7c1875f3..6992fcf6 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -3,7 +3,7 @@ import { GrazProvider } from "graz"; import { AppProps } from "next/app"; import Script from "next/script"; import "nextra-theme-docs/style.css"; -import { ReactNode, useEffect, useState, useRef } from "react"; +import { ReactNode, useEffect, useRef } from "react"; import { WagmiConfig, createConfig } from "wagmi"; import { arbitrum, avalanche, mainnet, sepolia } from "wagmi/chains"; import * as amplitude from "@amplitude/analytics-browser"; @@ -37,10 +37,8 @@ const config = createConfig( ); export default function Nextra({ Component, pageProps }: NextraAppProps) { - const [mounted, setMounted] = useState(false); const amplitudeInitialized = useRef(false); - useEffect(() => setMounted(true), []); useEffect(() => { TagManager.initialize(tagManagerArgs); }, []); @@ -54,44 +52,40 @@ export default function Nextra({ Component, pageProps }: NextraAppProps) { } }, []); - // Make the global context available to every page. return ( - // prevent react hydration error - mounted && ( - <> - - - - - - - - - - - - - ) + gtag('config', 'G-7TVVW3MEK7'); + `} + + + + + + + + + + + + ); }