From 5a90cdb8104f099746461a442ff55425eb0a0cd1 Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 16 Mar 2018 10:33:00 -0700 Subject: [PATCH] Remove unused files These were placeholders --- .../GraphOptionsThresholdColoring.js | 38 ---------- .../components/GraphOptionsThresholds.js | 75 ------------------- 2 files changed, 113 deletions(-) delete mode 100644 ui/src/dashboards/components/GraphOptionsThresholdColoring.js delete mode 100644 ui/src/dashboards/components/GraphOptionsThresholds.js diff --git a/ui/src/dashboards/components/GraphOptionsThresholdColoring.js b/ui/src/dashboards/components/GraphOptionsThresholdColoring.js deleted file mode 100644 index e7996999dd..0000000000 --- a/ui/src/dashboards/components/GraphOptionsThresholdColoring.js +++ /dev/null @@ -1,38 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' - -import {THRESHOLD_TYPE_BG, THRESHOLD_TYPE_TEXT} from 'shared/constants/thresholds' - -// TODO: Needs major refactoring to make thresholds a much more general component to be shared between single stat, gauge, and table. -const GraphOptionsThresholdColoring = ({ - onToggleThresholdsListType, - thresholdsListType, -}) => { - return ( -
- - -
- ) -} -const {func, string} = PropTypes - -GraphOptionsThresholdColoring.propTypes = { - thresholdsListType: string, - onToggleThresholdsListType: func, -} - -export default GraphOptionsThresholdColoring diff --git a/ui/src/dashboards/components/GraphOptionsThresholds.js b/ui/src/dashboards/components/GraphOptionsThresholds.js deleted file mode 100644 index c9aad8e850..0000000000 --- a/ui/src/dashboards/components/GraphOptionsThresholds.js +++ /dev/null @@ -1,75 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import Threshold from 'src/dashboards/components/Threshold' -import ColorDropdown from 'shared/components/ColorDropdown' - -import {GAUGE_COLORS, THRESHOLD_TYPE_BASE} from 'shared/constants/thresholds' - -// TODO: Needs major refactoring to make thresholds a much more general component to be shared between single stat, gauge, and table. -const GraphOptionsThresholds = ({ - onAddThreshold, - disableAddThreshold, - sortedColors, - formatColor, - onChooseColor, - onValidateColorValue, - onUpdateColorValue, - onDeleteThreshold, -}) => { - return ( -
- - - {sortedColors.map( - color => - color.id === THRESHOLD_TYPE_BASE - ?
-
Base Color
- -
- : - )} -
- ) -} -const {arrayOf, bool, func, shape, string, number} = PropTypes - -GraphOptionsThresholds.propTypes = { - onAddThreshold: func, - disableAddThreshold: bool, - sortedColors: arrayOf( - shape({ - hex: string, - id: string, - name: string, - type: string, - value: number, - }) - ), - formatColor: func, - onChooseColor: func, - onValidateColorValue: func, - onUpdateColorValue: func, - onDeleteThreshold: func, -} - -export default GraphOptionsThresholds