From 15ee3644fb688bc571679ed564351f75e5e00587 Mon Sep 17 00:00:00 2001 From: Deniz Kusefoglu Date: Sun, 11 Mar 2018 21:06:23 -0700 Subject: [PATCH] resolve linter errors --- ui/src/dashboards/containers/DashboardPage.js | 3 +-- ui/src/hosts/containers/HostPage.js | 2 -- ui/src/shared/components/Crosshair.js | 2 +- ui/src/shared/components/TableGraph.js | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/src/dashboards/containers/DashboardPage.js b/ui/src/dashboards/containers/DashboardPage.js index 59697d791..a8daa840a 100644 --- a/ui/src/dashboards/containers/DashboardPage.js +++ b/ui/src/dashboards/containers/DashboardPage.js @@ -4,7 +4,6 @@ import {withRouter} from 'react-router' import {bindActionCreators} from 'redux' import _ from 'lodash' -import Dygraph from 'src/external/dygraph' import {isUserAuthorized, EDITOR_ROLE} from 'src/auth/Authorized' @@ -32,7 +31,7 @@ import { templateControlBarVisibilityToggled as templateControlBarVisibilityToggledAction, } from 'shared/actions/app' import {presentationButtonDispatcher} from 'shared/dispatchers' -import {DASHBOARD_LAYOUT_ROW_HEIGHT, DYGRAPH_CELL_TYPES} from 'shared/constants' +import {DASHBOARD_LAYOUT_ROW_HEIGHT} from 'shared/constants' const FORMAT_INFLUXQL = 'influxql' const defaultTimeRange = { diff --git a/ui/src/hosts/containers/HostPage.js b/ui/src/hosts/containers/HostPage.js index e418708fb..698404e6f 100644 --- a/ui/src/hosts/containers/HostPage.js +++ b/ui/src/hosts/containers/HostPage.js @@ -4,8 +4,6 @@ import {bindActionCreators} from 'redux' import _ from 'lodash' import classnames from 'classnames' -import Dygraph from 'src/external/dygraph' - import LayoutRenderer from 'shared/components/LayoutRenderer' import DashboardHeader from 'src/dashboards/components/DashboardHeader' import FancyScrollbar from 'shared/components/FancyScrollbar' diff --git a/ui/src/shared/components/Crosshair.js b/ui/src/shared/components/Crosshair.js index 2e148d167..4899df4cf 100644 --- a/ui/src/shared/components/Crosshair.js +++ b/ui/src/shared/components/Crosshair.js @@ -28,7 +28,7 @@ class Crosshair extends Component { } } -const {func, number, shape, string} = PropTypes +const {number, shape, string} = PropTypes Crosshair.propTypes = { dygraph: shape({}), diff --git a/ui/src/shared/components/TableGraph.js b/ui/src/shared/components/TableGraph.js index 068a1808b..96b6e8a18 100644 --- a/ui/src/shared/components/TableGraph.js +++ b/ui/src/shared/components/TableGraph.js @@ -21,7 +21,6 @@ class TableGraph extends Component { } componentWillUpdate(nextProps) { - // TODO: determine if in dataExplorer const {labels, data} = timeSeriesToTableGraph(nextProps.data) this._labels = labels this._data = data