diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index 8a29da1..0a08d60 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -1,28 +1,14 @@ "use client"; -import React, { useEffect, useState } from "react"; +import React from "react"; import Link from "next/link"; -import { loginVisibilityState } from "@/jotai/loginVisibility"; -import { useSetAtom } from "jotai"; const Footer = () => { - const [clicksCounter, setClicksCounter] = useState(0); - const setLoginVisibility = useSetAtom(loginVisibilityState); - - useEffect(() => { - if (clicksCounter === 5) { - setLoginVisibility(true); - } - }, [clicksCounter, setLoginVisibility]); - return (
- +
{ const activeTab = useActiveTab(); const setActiveTab = useSetActiveTab(); - const isLoginButtonVisible = useAtomValue(loginVisibilityState); const [navbarBgVisible, setNavbarBgVisible] = useState(false); // Hooks - const [isMobile, isMd, isLg, isXl, isDesktop, isBreakpointReady] = + const [isMobile, isMd, isDesktop, isBreakpointReady] = useBreakpoints(); const pathname = usePathname(); const { user } = useUser(); @@ -70,11 +67,7 @@ const NavigationBar = ({ ) { return; } - if ( - !user || - !isDesktop || - (process.env.NODE_ENV === "production" && !isLoginButtonVisible) - ) { + if (!user || !isDesktop) { return; } return user.profile ? ( @@ -86,7 +79,7 @@ const NavigationBar = ({
); - }, [isDesktop, isLoginButtonVisible, pathname, user]); + }, [isDesktop, pathname, user]); return (