fix: add missing key to top menu items

This commit is contained in:
Stefano Brilli 2021-07-24 12:28:54 +02:00
parent 793422878d
commit a28b434bca
1 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ export const TopMenu = function(props: { onClick?: () => void }) {
);
}
if (mainView === 'MAIN') {
menuItems.push(<Divider />);
menuItems.push(<Divider key="action-divider" />);
menuItems.push(
<MenuItem key="allowFullWidth" onClick={handleAllowFullWidth}>
<ListItemIcon className={classes.listItemIcon}>
@ -208,7 +208,7 @@ export const TopMenu = function(props: { onClick?: () => void }) {
);
}
if (mainView === 'MAIN') {
menuItems.push(<Divider />);
menuItems.push(<Divider key="feature-divider" />);
}
menuItems.push(
<MenuItem key="about" onClick={handleShowAbout}>