File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { ReactQueryDevtools } from '@tanstack/react-query-devtools' ;
3- import { AppBar , Layout , InspectorButton , TitlePortal } from 'react-admin' ;
3+ import {
4+ AppBar ,
5+ Layout ,
6+ Menu ,
7+ InspectorButton ,
8+ TitlePortal ,
9+ } from 'react-admin' ;
410import '../assets/app.css' ;
511
612const MyAppBar = ( ) => (
@@ -10,9 +16,20 @@ const MyAppBar = () => (
1016 </ AppBar >
1117) ;
1218
19+ const MyMenu = ( ) => (
20+ < Menu >
21+ < Menu . ResourceItem name = "posts" keyboardShortcut = "g>p" />
22+ < Menu . ResourceItem name = "comments" keyboardShortcut = "g>c" />
23+ < Menu . ResourceItem name = "tags" keyboardShortcut = "g>t" />
24+ < Menu . ResourceItem name = "users" keyboardShortcut = "g>u" />
25+ </ Menu >
26+ ) ;
27+
1328export default ( { children } ) => (
1429 < >
15- < Layout appBar = { MyAppBar } > { children } </ Layout >
30+ < Layout appBar = { MyAppBar } menu = { MyMenu } >
31+ { children }
32+ </ Layout >
1633 < ReactQueryDevtools
1734 initialIsOpen = { false }
1835 buttonPosition = "bottom-left"
You can’t perform that action at this time.
0 commit comments