File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- // Added Search And Filters To The List
1
+ // Added Menu Icons
2
2
// https://marmelab.com/react-admin/Tutorial.html
3
3
4
4
import React from 'react' ;
5
5
import { Admin , Resource } from 'react-admin' ;
6
6
import { PostList , PostEdit , PostCreate } from './posts'
7
7
import { UserList } from './users'
8
8
import jsonServerProvider from 'ra-data-json-server' ;
9
+ import PostIcon from '@material-ui/icons/Book'
10
+ import UserIcon from '@material-ui/icons/Group'
9
11
10
12
const dataProvider = jsonServerProvider ( 'http://jsonplaceholder.typicode.com' ) ;
11
13
12
14
const App = ( ) => (
13
15
< Admin dataProvider = { dataProvider } >
14
- < Resource name = "posts" list = { PostList } edit = { PostEdit } create = { PostCreate } />
15
- < Resource name = "users" list = { UserList } />
16
+ < Resource name = "posts" list = { PostList } edit = { PostEdit } create = { PostCreate } icon = { PostIcon } />
17
+ < Resource name = "users" list = { UserList } icon = { UserIcon } />
16
18
</ Admin >
17
19
)
18
20
You can’t perform that action at this time.
0 commit comments