File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/templates/Drawer/BasicDrawer Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,21 @@ class BasicDrawer extends React.PureComponent {
11
11
static propTypes = {
12
12
links : PropTypes . arrayOf ( PropTypes . shape ( { } ) ) ,
13
13
classes : PropTypes . shape ( { } ) ,
14
- }
14
+ } ;
15
15
render ( ) {
16
16
const { links, classes } = this . props ;
17
17
return (
18
18
< div >
19
- { _ . map ( links , link => (
20
- < List className = { classes . list } >
21
- < ListItem button onClick = { link . onClick } >
19
+ < List className = { classes . list } >
20
+ { _ . map ( links , link => (
21
+ < ListItem button onClick = { link . onClick } key = { `link- ${ link . label } ` } >
22
22
< ListItemIcon >
23
23
{ link . icon ? < Icon > { link . icon } </ Icon > : < Icon > arrow_right</ Icon > }
24
24
</ ListItemIcon >
25
25
< ListItemText primary = { link . label } />
26
26
</ ListItem >
27
- </ List >
28
- ) ) }
27
+ ) ) }
28
+ </ List >
29
29
</ div >
30
30
) ;
31
31
}
You can’t perform that action at this time.
0 commit comments