Skip to content

Commit 0605190

Browse files
committed
fixed list
1 parent ec81564 commit 0605190

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/templates/Drawer/BasicDrawer/BasicDrawer.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ class BasicDrawer extends React.PureComponent {
1111
static propTypes = {
1212
links: PropTypes.arrayOf(PropTypes.shape({})),
1313
classes: PropTypes.shape({}),
14-
}
14+
};
1515
render() {
1616
const { links, classes } = this.props;
1717
return (
1818
<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}`}>
2222
<ListItemIcon>
2323
{link.icon ? <Icon>{link.icon}</Icon> : <Icon>arrow_right</Icon>}
2424
</ListItemIcon>
2525
<ListItemText primary={link.label} />
2626
</ListItem>
27-
</List>
28-
))}
27+
))}
28+
</List>
2929
</div>
3030
);
3131
}

0 commit comments

Comments
 (0)