mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
useRouter
This commit is contained in:
parent
a84d79464a
commit
7137aaf4fc
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import {
|
|||
highlightBarKeyboardCommands,
|
||||
articleKeyboardCommands,
|
||||
} from '../../lib/keyboardShortcuts/navigationShortcuts'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
type KeyboardShortcutListModalProps = {
|
||||
onOpenChange: (open: boolean) => void
|
||||
|
|
@ -26,6 +27,8 @@ type KeyboardShortcutListModalProps = {
|
|||
export function KeyboardShortcutListModal(
|
||||
props: KeyboardShortcutListModalProps
|
||||
): JSX.Element {
|
||||
const router = useRouter()
|
||||
|
||||
return (
|
||||
<ModalRoot defaultOpen onOpenChange={props.onOpenChange}>
|
||||
<ModalOverlay />
|
||||
|
|
|
|||
Loading…
Reference in a new issue