diff --git a/frontend/components/Navbar.tsx b/frontend/components/Navbar.tsx index 59d2833..1b6d701 100644 --- a/frontend/components/Navbar.tsx +++ b/frontend/components/Navbar.tsx @@ -1,23 +1,15 @@ "use client"; import Link from 'next/link'; import { usePathname } from 'next/navigation'; -import { useEffect, useState } from 'react'; +import { useState } from 'react'; export function Navbar() { const pathname = usePathname(); const onTry = pathname?.startsWith('/try'); - const [scrolled, setScrolled] = useState(false); const [menuOpen, setMenuOpen] = useState(false); - useEffect(() => { - const onScroll = () => setScrolled(window.scrollY > 4); - onScroll(); - window.addEventListener('scroll', onScroll, { passive: true }); - return () => window.removeEventListener('scroll', onScroll); - }, []); - return ( -