From de8f12d74faef5fa3f9e38d1340948cab2d06ea3 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 1 Jul 2020 13:33:31 +0200 Subject: Manually generate IDs --- frontend/src/components/navigation/Navbar.js | 176 +++++++++++++-------------- 1 file changed, 88 insertions(+), 88 deletions(-) (limited to 'frontend/src/components/navigation/Navbar.js') diff --git a/frontend/src/components/navigation/Navbar.js b/frontend/src/components/navigation/Navbar.js index 44458949..d22f637e 100644 --- a/frontend/src/components/navigation/Navbar.js +++ b/frontend/src/components/navigation/Navbar.js @@ -1,102 +1,102 @@ -import classNames from "classnames"; -import React from "react"; -import { Link, withRouter } from "react-router-dom"; -import { userIsLoggedIn } from "../../auth/index"; -import Login from "../../containers/auth/Login"; -import Logout from "../../containers/auth/Logout"; -import ProfileName from "../../containers/auth/ProfileName"; -import "./Navbar.css"; +import classNames from 'classnames' +import React from 'react' +import { Link, withRouter } from 'react-router-dom' +import { userIsLoggedIn } from '../../auth/index' +import Login from '../../containers/auth/Login' +import Logout from '../../containers/auth/Logout' +import ProfileName from '../../containers/auth/ProfileName' +import './Navbar.css' -export const NAVBAR_HEIGHT = 60; +export const NAVBAR_HEIGHT = 60 -export const NavItem = withRouter(props => ); +export const NavItem = withRouter(props => ) export const LoggedInSection = withRouter(props => ( - -)); + +)) const GitHubLink = () => ( - - - -); + + + +) const NavItemWithoutRoute = ({ route, location, children }) => ( -
  • - {children} -
  • -); +
  • + {children} +
  • +) const LoggedInSectionWithoutRoute = ({ location }) => ( -
      - {userIsLoggedIn() ? ( - [ - location.pathname === "/" ? ( - - - My Simulations - - +
        + {userIsLoggedIn() ? ( + [ + location.pathname === '/' ? ( + + + My Simulations + + + ) : ( + + + + + + ), + + + , + ] ) : ( - - - - - - ), - - - - ] - ) : ( - - - - - )} -
      -); + + + + + )} +
    +) const Navbar = ({ fullWidth, children }) => ( - +) -export default Navbar; +export default Navbar -- cgit v1.2.3