Make navigation work

This commit is contained in:
Senad Uka
2019-06-23 19:38:26 +02:00
parent 50cfbfede5
commit 755f056abb
14 changed files with 437 additions and 22 deletions

View File

@@ -0,0 +1,19 @@
import React from 'react';
import { Navbar, NavItem } from 'react-materialize';
import { withRouter } from 'react-router-dom';
const RoutableNavItem = (props) => {
return (
<NavItem data-target="mobile-nav" className="sidenav-close" onClick={
() => {
props.history.push(props.href);
}
}>
{ props.children }
</NavItem>
);
}
export default withRouter(RoutableNavItem);