mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make the router param optional
This commit is contained in:
parent
dad777ce6d
commit
a84d79464a
2 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ export function KeyboardShortcutListModal(
|
|||
/>
|
||||
<ShortcutListSection
|
||||
title="Article"
|
||||
commands={articleKeyboardCommands(() => {})}
|
||||
commands={articleKeyboardCommands(router, () => {})}
|
||||
/>
|
||||
<ShortcutListSection
|
||||
title="Highlight Bar"
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ type ArticleKeyboardAction =
|
|||
| 'editLabels'
|
||||
|
||||
export function articleKeyboardCommands(
|
||||
router: NextRouter,
|
||||
router: NextRouter | undefined,
|
||||
actionHandler: (action: ArticleKeyboardAction) => void
|
||||
): KeyboardCommand[] {
|
||||
return [
|
||||
|
|
|
|||
Loading…
Reference in a new issue