Skip to content

Commit 275ae5e

Browse files
committed
fix NextRouter was not mounted error
1 parent 8afbbc8 commit 275ae5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/search/components/desktop-hit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useModal } from "@lib/context/modal-context"
22
import Hit, { HitProps } from "@modules/search/components/hit"
3-
import { useRouter } from "next/router"
3+
import { useRouter } from "next/navigation"
44

55
const DesktopHit = ({ hit }: HitProps) => {
66
const { close } = useModal()

src/modules/search/components/mobile-hit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useMobileMenu } from "@lib/context/mobile-menu-context"
22
import Hit, { HitProps } from "@modules/search/components/hit"
3-
import { useRouter } from "next/router"
3+
import { useRouter } from "next/navigation"
44

55
const MobileHit = ({ hit }: HitProps) => {
66
const { close } = useMobileMenu()

0 commit comments

Comments
 (0)