From 751a9ef3a12c952fe179f256d854d0c4aa37e28e Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 4 Oct 2017 22:49:07 +0200 Subject: Apply prettier to codebase --- src/components/navigation/Navbar.js | 140 +++++++++++++++++++----------------- 1 file changed, 75 insertions(+), 65 deletions(-) (limited to 'src/components/navigation/Navbar.js') diff --git a/src/components/navigation/Navbar.js b/src/components/navigation/Navbar.js index 4981bb53..fa2516f5 100644 --- a/src/components/navigation/Navbar.js +++ b/src/components/navigation/Navbar.js @@ -1,7 +1,7 @@ import classNames from "classnames"; -import React from 'react'; -import {Link, withRouter} from "react-router-dom"; -import {userIsLoggedIn} from "../../auth/index"; +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"; @@ -9,73 +9,83 @@ import "./Navbar.css"; export const NAVBAR_HEIGHT = 60; -export const NavItem = withRouter(props => ); -export const LoggedInSection = withRouter(props => ); +export const NavItem = withRouter(props => ); +export const LoggedInSection = withRouter(props => ( + +)); -const NavItemWithoutRoute = ({route, location, children}) => ( -
  • - {children} -
  • +const NavItemWithoutRoute = ({ route, location, children }) => ( +
  • + {children} +
  • ); -const LoggedInSectionWithoutRoute = ({location}) => ( -
      - {userIsLoggedIn() ? - [ - location.pathname === "/" ? - - - My Simulations - - : - - - - - , - - - - ] : - - - - } -
    - ) -; - -const Navbar = ({fullWidth, children}) => ( - ); export default Navbar; -- cgit v1.2.3