fix deps in hotkeys memos

This commit is contained in:
David Lechner
2022-03-12 15:19:50 -06:00
parent 8d4b42875a
commit c51669c357
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ const SettingsDrawer: React.FunctionComponent<SettingsProps> = (props) => {
onKeyDown: () => dispatch(toggleBoolean(BooleanSettingId.ShowDocs)),
},
],
[],
[i18n, dispatch],
);
useHotkeys(hotkeys);
+1 -1
View File
@@ -87,7 +87,7 @@ const ActionButton: React.FC<ActionButtonProps> = (props) => {
},
},
];
}, [props, i18n]);
}, [props.keyboardShortcut, props.tooltip, props.enabled, props.onAction, i18n]);
useHotkeys(hotkeys);