From f2de68252a5af08ba73213ae4ea545912ef04690 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Mon, 28 Aug 2017 09:02:38 +0200 Subject: Complete homepage transfer --- src/components/navigation/Navbar.js | 46 +++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 17 deletions(-) (limited to 'src/components/navigation/Navbar.js') diff --git a/src/components/navigation/Navbar.js b/src/components/navigation/Navbar.js index c0c8c006..e621b1e4 100644 --- a/src/components/navigation/Navbar.js +++ b/src/components/navigation/Navbar.js @@ -8,6 +8,7 @@ import ProfileName from "../../containers/auth/ProfileName"; import "./Navbar.css"; export const NavItem = withRouter(props => ); +export const LoggedInSection = withRouter(props => ); const NavItemWithoutRoute = ({route, location, children}) => (
  • @@ -15,6 +16,33 @@ const NavItemWithoutRoute = ({route, location, children}) => (
  • ); +const LoggedInSectionWithoutRoute = ({location}) => ( +
      + {userIsLoggedIn() ? + [ + location.pathname === "/" ? + + + My Simulations + + : + + + + + , + + + + ] : + + + + } +
    + ) +; + const Navbar = ({children}) => ( -- cgit v1.2.3