From 5eab96f130c71e2e4e441624cc4c2baf99e219a2 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Sun, 26 May 2024 15:34:33 +0300 Subject: [PATCH] Update _app.tsx --- src/pages/_app.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 3266a62f2..3a6f3dcf1 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -15,21 +15,9 @@ import MarketMetadataProvider from '@context/MarketMetadata' import { WagmiConfig } from 'wagmi' import { ConnectKitProvider } from 'connectkit' import { connectKitTheme, wagmiClient } from '@utils/wallet' -import { useRouter } from 'next/router' function MyApp({ Component, pageProps }: AppProps): ReactElement { Decimal.set({ rounding: 1 }) - const router = useRouter() - - useEffect(() => { - // Track page views - const handleRouteChange = () => posthog?.capture('$pageview') - router.events.on('routeChangeComplete', handleRouteChange) - - return () => { - router.events.off('routeChangeComplete', handleRouteChange) - } - }, [router.events]) return ( <>