diff --git a/ui/src/dashboards/components/Visualization.js b/ui/src/dashboards/components/Visualization.js index b9131af830..70da958277 100644 --- a/ui/src/dashboards/components/Visualization.js +++ b/ui/src/dashboards/components/Visualization.js @@ -88,33 +88,9 @@ DashVisualization.propTypes = { }), tableOptions: shape({}), resizerTopHeight: number, - thresholdsListColors: arrayOf( - shape({ - type: string.isRequired, - hex: string.isRequired, - id: string.isRequired, - name: string.isRequired, - value: number.isRequired, - }).isRequired - ), - gaugeColors: arrayOf( - shape({ - type: string.isRequired, - hex: string.isRequired, - id: string.isRequired, - name: string.isRequired, - value: number.isRequired, - }).isRequired - ), - lineColors: arrayOf( - shape({ - type: string.isRequired, - hex: string.isRequired, - id: string.isRequired, - name: string.isRequired, - value: number.isRequired, - }).isRequired - ), + thresholdsListColors: arrayOf(shape({}).isRequired), + gaugeColors: arrayOf(shape({}).isRequired), + lineColors: arrayOf(shape({}).isRequired), staticLegend: bool, setDataLabels: func, } diff --git a/ui/src/shared/components/ColorScaleDropdown.js b/ui/src/shared/components/ColorScaleDropdown.js index 909d0bcc9e..66ca74e55d 100644 --- a/ui/src/shared/components/ColorScaleDropdown.js +++ b/ui/src/shared/components/ColorScaleDropdown.js @@ -98,7 +98,7 @@ class ColorScaleDropdown extends Component { } } -const {arrayOf, bool, func, shape, string, number} = PropTypes +const {arrayOf, bool, func, shape, string} = PropTypes ColorScaleDropdown.propTypes = { selected: arrayOf( @@ -107,7 +107,6 @@ ColorScaleDropdown.propTypes = { hex: string.isRequired, id: string.isRequired, name: string.isRequired, - value: number.isRequired, }).isRequired ).isRequired, onChoose: func.isRequired, diff --git a/ui/src/shared/components/LineGraphColorSelector.js b/ui/src/shared/components/LineGraphColorSelector.js index a8bfc8e06b..1b197c0987 100644 --- a/ui/src/shared/components/LineGraphColorSelector.js +++ b/ui/src/shared/components/LineGraphColorSelector.js @@ -31,7 +31,7 @@ class LineGraphColorSelector extends Component { } } -const {arrayOf, func, shape, string, number} = PropTypes +const {arrayOf, func, shape, string} = PropTypes LineGraphColorSelector.propTypes = { lineColors: arrayOf( @@ -40,7 +40,6 @@ LineGraphColorSelector.propTypes = { hex: string.isRequired, id: string.isRequired, name: string.isRequired, - value: number.isRequired, }).isRequired ).isRequired, handleUpdateLineColors: func.isRequired,