Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Jan 19, 2025
1 parent f2eff31 commit 16d9d29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import Head from 'next/head';
import Link from 'next/link';
import Router from 'next/router';
import {useRouter} from 'next/navigation';
import {lazy, useEffect} from 'react';
import * as React from 'react';
import {createPortal} from 'react-dom';
Expand Down Expand Up @@ -111,6 +111,7 @@ export function Search({
},
}: SearchProps) {
useDocSearchKeyboardEvents({isOpen, onOpen, onClose});
const router = useRouter();
return (
<>
<Head>
Expand All @@ -127,7 +128,7 @@ export function Search({
onClose={onClose}
navigator={{
navigate({itemUrl}: any) {
Router.push(itemUrl);
router.push(itemUrl);
},
}}
transformItems={(items: any[]) => {
Expand Down

0 comments on commit 16d9d29

Please sign in to comment.