diff --git a/components/ui/Navbar.tsx b/components/ui/Navbar.tsx index 255b6b3..1ca97e0 100644 --- a/components/ui/Navbar.tsx +++ b/components/ui/Navbar.tsx @@ -25,7 +25,6 @@ interface UserData { const Navbar = () => { const [user, setUser] = useState(null); - const [isLoading, setIsLoading] = useState(true); const [isVisible, setIsVisible] = useState(true); const [lastScrollY, setLastScrollY] = useState(0); const { showSuccess, showError } = useToast (); @@ -68,8 +67,6 @@ const Navbar = () => { } } catch (error) { console.error('Error checking session:', error); - } finally { - setIsLoading(false); } }; @@ -95,24 +92,6 @@ const Navbar = () => { } }; - if (isLoading) { - return ( -
-
-
- - PODIF Logo - PODIF - -
-
- -
-
-
- ); - } - return (