From e172ecf7bb54d52b6eaf65675c07660ef6251372 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 4 Jun 2024 09:10:51 +0700 Subject: [PATCH] removed location --- packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx b/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx index eaaabbf242..4c4b036688 100644 --- a/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx +++ b/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx @@ -193,7 +193,6 @@ export default function TopNav({ // // { id: 4, name: "Text to Image", link: "/text-to-image" }, // ]; - const location = useLocation(); const topBarWrapper = document.getElementById("topbar-wrapper"); useEffect(() => { @@ -241,7 +240,7 @@ export default function TopNav({ return () => { window.removeEventListener("scroll", handleScroll); }; - }, [domain.titlePart, isOnLandingPage, topBarWrapper, location]); + }, [domain.titlePart, isOnLandingPage, topBarWrapper]); if (isOnBetaKeyRedeemPage) { return null;