diff --git a/components/Navbar.tsx b/components/Navbar.tsx index d0d5080..e6130c2 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -11,7 +11,6 @@ import { useEffect, useState } from 'react' import { Nullable, User, UserCache } from '@types' import Fetch from '@utils/Fetch' import { redirectTo } from '@utils/Tools' -import Search from './Search' const DiscordAvatar = dynamic(() => import('@components/DiscordAvatar')) @@ -55,7 +54,7 @@ const Navbar: React.FC = ({ token }) => { const [scrolled, setScrolled] = useState(false) useEffect(() => { - const handleScroll = () => setScrolled(window.scrollY > 80) + const handleScroll = () => setScrolled(window.scrollY > 160) window.addEventListener('scroll', handleScroll) return () => window.removeEventListener('scroll', handleScroll) }, []) @@ -180,11 +179,6 @@ const Navbar: React.FC = ({ token }) => { - {scrolled && ( -
- -
- )}