diff --git a/embark-ui/src/components/Layout.js b/embark-ui/src/components/Layout.js index e5bff8e5..15682182 100644 --- a/embark-ui/src/components/Layout.js +++ b/embark-ui/src/components/Layout.js @@ -1,9 +1,7 @@ import React from 'react'; -import {Link} from 'react-router-dom'; +import {Link, withRouter} from 'react-router-dom'; import PropTypes from 'prop-types'; -import {DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem, NavLink, Container} from 'reactstrap'; import {connect} from 'react-redux'; -import {withRouter} from "react-router-dom"; import {DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem, NavLink, Container, Alert} from 'reactstrap'; import {explorerSearch} from "../actions"; import {LIGHT_THEME, DARK_THEME} from '../constants'; @@ -55,12 +53,12 @@ const SIDEBAR_NAV_ITEMS = { const removeCssClasses = () => { document.body.classList.remove('sidebar-fixed'); document.body.classList.remove('sidebar-lg-show'); -} +}; const getSidebar = (location) => { const currentItem = Object.keys(SIDEBAR_NAV_ITEMS).find(path => location.pathname.startsWith(path)); return currentItem && SIDEBAR_NAV_ITEMS[currentItem]; -} +}; class Layout extends React.Component { constructor(props) { @@ -114,11 +112,11 @@ class Layout extends React.Component { renderNav() { return (