mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-10 07:11:48 +00:00
code style improvements
This commit is contained in:
parent
aac69c43db
commit
4756a959e8
1 changed files with 7 additions and 5 deletions
|
|
@ -45,11 +45,13 @@ const App = () => {
|
|||
const [gamepadModalOpen,, closeGamepadModal, toggleGamepadModal] = useBinaryState(false);
|
||||
|
||||
const onShortcut = React.useCallback((name) => {
|
||||
if (name === 'shortcuts') {
|
||||
toggleShortcutModal();
|
||||
}
|
||||
if (name === 'gamepadGuide') {
|
||||
toggleGamepadModal();
|
||||
switch (name) {
|
||||
case 'shortcuts':
|
||||
toggleShortcutModal();
|
||||
break;
|
||||
case 'gamepadGuide':
|
||||
toggleGamepadModal();
|
||||
break;
|
||||
}
|
||||
}, [toggleShortcutModal, toggleGamepadModal]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue