From 7137aaf4fcf6a7b047a0667052261c29984b01f7 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 8 Mar 2022 20:05:18 -0800 Subject: [PATCH] useRouter --- .../web/components/templates/KeyboardShortcutListModal.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/web/components/templates/KeyboardShortcutListModal.tsx b/packages/web/components/templates/KeyboardShortcutListModal.tsx index 9ae97e1fd..9ba255933 100644 --- a/packages/web/components/templates/KeyboardShortcutListModal.tsx +++ b/packages/web/components/templates/KeyboardShortcutListModal.tsx @@ -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 (