Add door lock charges screen #3

Merged
bilal.catic merged 12 commits from add-door-lock-charges-screen into master 2019-05-28 13:38:44 +02:00
2 changed files with 12 additions and 2 deletions
Showing only changes of commit 64ed758593 - Show all commits

View File

@@ -13,7 +13,11 @@ class App extends Component {
<Switch>
{
mainMenuItems.map(mainMenuItem =>
<Route exact path={mainMenuItem.url} component={mainMenuItem.component} />)
<Route key={mainMenuItem.id}
exact
path={mainMenuItem.url}
component={mainMenuItem.component}
/>)
}
<Route component={NotFound} />
</Switch>

View File

@@ -8,7 +8,13 @@ const MainMenu = () =>
(<Menu>
{
mainMenuItems.map(mainMenuItem =>
<Menu.Item as={NavLink} to={mainMenuItem.url} exact>{mainMenuItem.title}</Menu.Item>)
<Menu.Item key={mainMenuItem.id}
as={NavLink}
to={mainMenuItem.url}
exact
>
{mainMenuItem.title}
</Menu.Item>)
}
</Menu>);