diff --git a/pages/_app.tsx b/pages/_app.tsx index 309fbd7..9968a11 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,4 +1,3 @@ -import {useEffect, useRef} from 'react' import type {AppProps} from 'next/app' import {Header} from '@/components/Header' import {Footer} from '@/components/Footer' @@ -6,19 +5,7 @@ import {Footer} from '@/components/Footer' import '../styles/tailwind.css' import 'focus-visible' -function usePrevious(value: string): string | null { - let ref = useRef(null) - - useEffect(() => { - ref.current = value - }, [value]) - - return ref.current -} - -export default function App({Component, pageProps, router}: AppProps) { - let previousPathname = usePrevious(router.pathname) - +export default function App({Component, pageProps}: AppProps) { return ( <>
@@ -29,7 +16,7 @@ export default function App({Component, pageProps, router}: AppProps) {
- +