mirror of https://github.com/embarklabs/embark.git
fix(cockpit/Layout): ensure Layout render doesn't throw
In https://github.com/status-im/embark-area-51/commit/62964c8ce we've introduced a regression where are two errors are thrown when `Layout` component is rendered: - one for NavItem not having a key property - one for margin-top not being a supported style property on Container This commits fixes both.
This commit is contained in:
parent
ba5e479ae8
commit
8740c8c0c9
|
@ -60,7 +60,7 @@ const Layout = ({children, logout, credentials, location, toggleTheme, currentTh
|
|||
<Nav className="d-md-down-none" navbar>
|
||||
{sidebarNavItems.items.map((item) => {
|
||||
return (
|
||||
<NavItem className="px-3">
|
||||
<NavItem className="px-3" key={item.url}>
|
||||
<NavLink href={item.url}>
|
||||
<i className={item.icon}> </i>
|
||||
{item.name}
|
||||
|
@ -94,7 +94,7 @@ const Layout = ({children, logout, credentials, location, toggleTheme, currentTh
|
|||
<AppSidebarMinimizer />
|
||||
</AppSidebar>
|
||||
<main className="main">
|
||||
<Container fluid className="h-100" style={{"margin-top": '24px'}}>
|
||||
<Container fluid className="h-100" style={{marginTop: '24px'}}>
|
||||
{children}
|
||||
</Container>
|
||||
</main>
|
||||
|
|
Loading…
Reference in New Issue