Migrate to a monorepo structure (#2909)
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
|
||||
import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';
|
||||
|
||||
export const InitializeHotkeyStorybookHookEffect = () => {
|
||||
const setHotkeyScope = useSetHotkeyScope();
|
||||
|
||||
useEffect(() => {
|
||||
setHotkeyScope(AppHotkeyScope.App, {
|
||||
commandMenu: true,
|
||||
goto: false,
|
||||
keyboardShortcutMenu: false,
|
||||
});
|
||||
}, [setHotkeyScope]);
|
||||
|
||||
return <></>;
|
||||
};
|
||||
Reference in New Issue
Block a user