mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
fix deps in hotkeys memos
This commit is contained in:
@@ -82,7 +82,7 @@ const SettingsDrawer: React.FunctionComponent<SettingsProps> = (props) => {
|
||||
onKeyDown: () => dispatch(toggleBoolean(BooleanSettingId.ShowDocs)),
|
||||
},
|
||||
],
|
||||
[],
|
||||
[i18n, dispatch],
|
||||
);
|
||||
|
||||
useHotkeys(hotkeys);
|
||||
|
||||
@@ -87,7 +87,7 @@ const ActionButton: React.FC<ActionButtonProps> = (props) => {
|
||||
},
|
||||
},
|
||||
];
|
||||
}, [props, i18n]);
|
||||
}, [props.keyboardShortcut, props.tooltip, props.enabled, props.onAction, i18n]);
|
||||
|
||||
useHotkeys(hotkeys);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user