mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
removed location
This commit is contained in:
1 parent
3c20892d9e
commit
e172ecf7bb
1 file changed
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user