Make the router param optional

This commit is contained in:
Jackson Harper 2022-03-08 13:07:03 -08:00
parent dad777ce6d
commit a84d79464a
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ export function KeyboardShortcutListModal(
/>
<ShortcutListSection
title="Article"
commands={articleKeyboardCommands(() => {})}
commands={articleKeyboardCommands(router, () => {})}
/>
<ShortcutListSection
title="Highlight Bar"

View file

@ -209,7 +209,7 @@ type ArticleKeyboardAction =
| 'editLabels'
export function articleKeyboardCommands(
router: NextRouter,
router: NextRouter | undefined,
actionHandler: (action: ArticleKeyboardAction) => void
): KeyboardCommand[] {
return [