File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/ra-ui-materialui/src/layout Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 11import React , {
22 forwardRef ,
3- lazy ,
43 useCallback ,
54 useRef ,
65 type ReactElement ,
@@ -26,14 +25,9 @@ import {
2625import { useTranslate , useBasename , useEvent } from 'ra-core' ;
2726import type { Keys } from 'react-hotkeys-hook' ;
2827import { useSidebarState } from './useSidebarState' ;
28+ import { KeyboardShortcut } from '../KeyboardShortcut' ;
2929import { getKeyboardShortcutLabel } from '../getKeyboardShortcutLabel' ;
3030
31- const KeyboardShortcut = lazy ( ( ) =>
32- import ( '../KeyboardShortcut' ) . then ( module => ( {
33- default : module . KeyboardShortcut ,
34- } ) )
35- ) ;
36-
3731/**
3832 * Displays a menu item with a label and an icon - or only the icon with a tooltip when the sidebar is minimized.
3933 * It also handles the automatic closing of the menu on tap on mobile.
You can’t perform that action at this time.
0 commit comments