Skip to content

Commit

Permalink
fix: remove unnecessary mobile navigation router effect
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtaholik committed Feb 13, 2025
1 parent 937ab60 commit d5ceb65
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/app/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {ChevronDown} from 'lucide-react'
import clsx from 'clsx'
import {cn} from '@/ui/utils'
import LifetimeSaleHeaderBanner from '@/components/cta/sale/lifetime-header-banner'
import {useRouter} from 'next/router'

type NavLinkProps = {
name: string
Expand Down Expand Up @@ -565,11 +564,6 @@ const MobileNavigation = () => {
),
)

const router = useRouter()
React.useEffect(() => {
setOpen(false)
}, [router])

return (
<>
<div className="inline-flex items-center gap-4 relative z-50 lg:hidden h-full -mr-3">
Expand Down

0 comments on commit d5ceb65

Please sign in to comment.