File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/templates/Drawer/DrawerItemsList Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " material-ui-layout" ,
3
- "version" : " 0.1.0-rc.4 " ,
3
+ "version" : " 0.1.0-rc.5 " ,
4
4
"description" : " Layout components for material-ui" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ class DrawerItemsList extends React.PureComponent {
30
30
return (
31
31
< List className = { classes . list } >
32
32
{ map ( items , item => (
33
- < ListItem button onClick = { item . onClick } key = { `item-${ item . label } ` } >
33
+ < ListItem
34
+ button
35
+ key = { `item-${ item . label } ` }
36
+ onClick = { item . onClick || null }
37
+ href = { item . href || null }
38
+ component = { item . href ? 'a' : undefined }
39
+ >
34
40
< ListItemIcon > { this . renderIcon ( item ) } </ ListItemIcon >
35
41
< ListItemText primary = { item . label } />
36
42
</ ListItem >
You can’t perform that action at this time.
0 commit comments