File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { useEffect, useState } from 'react'
1111import { Nullable , User , UserCache } from '@types'
1212import Fetch from '@utils/Fetch'
1313import { redirectTo } from '@utils/Tools'
14- import Search from './Search'
1514
1615const DiscordAvatar = dynamic ( ( ) => import ( '@components/DiscordAvatar' ) )
1716
@@ -55,7 +54,7 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
5554 const [ scrolled , setScrolled ] = useState ( false )
5655
5756 useEffect ( ( ) => {
58- const handleScroll = ( ) => setScrolled ( window . scrollY > 80 )
57+ const handleScroll = ( ) => setScrolled ( window . scrollY > 160 )
5958 window . addEventListener ( 'scroll' , handleScroll )
6059 return ( ) => window . removeEventListener ( 'scroll' , handleScroll )
6160 } , [ ] )
@@ -180,11 +179,6 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
180179 </ li >
181180 </ ul >
182181 </ div >
183- { scrolled && (
184- < div className = 'hidden grow items-center justify-center px-6 lg:flex' >
185- < Search compact />
186- </ div >
187- ) }
188182 < div className = 'hidden lg:flex lg:items-center lg:bg-transparent lg:shadow-none' >
189183 < ul className = 'flex list-none flex-col lg:ml-auto lg:flex-row' >
190184 < li
You can’t perform that action at this time.
0 commit comments