From 261b4eddf3c1215f2e954779a485b290103109c1 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 19 Oct 2018 09:55:41 -0400 Subject: [PATCH] linting --- embark-ui/src/components/Layout.js | 50 +++++++++++++-------------- embark-ui/src/components/SearchBar.js | 2 +- embark-ui/src/components/Widget02.js | 2 +- 3 files changed, 26 insertions(+), 28 deletions(-) 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 (