Silence console error

pull/10616/head
Alex P 2018-03-27 12:15:45 -07:00
parent cf30c773ea
commit c32c0eb24a
3 changed files with 5 additions and 31 deletions

View File

@ -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,
}

View File

@ -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,

View File

@ -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,