From 61808d5939f125d13fa85ad3a459c14faf99d78d Mon Sep 17 00:00:00 2001 From: orangemug Date: Wed, 29 Nov 2017 15:03:37 +0000 Subject: [PATCH] Fixed lint errors. --- src/components/fields/_DataProperty.jsx | 7 ++++++- src/components/fields/_SpecProperty.jsx | 4 +++- src/components/fields/_ZoomProperty.jsx | 12 ++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/components/fields/_DataProperty.jsx b/src/components/fields/_DataProperty.jsx index c13d828..a4aefa2 100644 --- a/src/components/fields/_DataProperty.jsx +++ b/src/components/fields/_DataProperty.jsx @@ -15,7 +15,12 @@ import DeleteStopButton from './_DeleteStopButton' export default class DataProperty extends React.Component { static propTypes = { - value: PropTypes.oneOfType([ + onChange: PropTypes.func, + onDeleteStop: PropTypes.func, + onAddStop: PropTypes.func, + fieldName: PropTypes.string, + fieldSpec: PropTypes.object, + value: PropTypes.oneOfType([ PropTypes.object, PropTypes.string, PropTypes.number, diff --git a/src/components/fields/_SpecProperty.jsx b/src/components/fields/_SpecProperty.jsx index 583bffa..0e0fd9f 100644 --- a/src/components/fields/_SpecProperty.jsx +++ b/src/components/fields/_SpecProperty.jsx @@ -11,7 +11,9 @@ import labelFromFieldName from './_labelFromFieldName' export default class SpecProperty extends React.Component { static propTypes = { onZoomClick: PropTypes.func.isRequired, - onDataClick: PropTypes.func.isRequired + onDataClick: PropTypes.func.isRequired, + fieldName: PropTypes.string, + fieldSpec: PropTypes.object } render() { diff --git a/src/components/fields/_ZoomProperty.jsx b/src/components/fields/_ZoomProperty.jsx index 24af0f8..5659b14 100644 --- a/src/components/fields/_ZoomProperty.jsx +++ b/src/components/fields/_ZoomProperty.jsx @@ -15,6 +15,18 @@ import sortNumerically from '../../libs/sort-numerically' export default class ZoomProperty extends React.Component { static propTypes = { + onChange: PropTypes.func, + onDeleteStop: PropTypes.func, + onAddStop: PropTypes.func, + fieldName: PropTypes.string, + fieldSpec: PropTypes.object, + value: PropTypes.oneOfType([ + PropTypes.object, + PropTypes.string, + PropTypes.number, + PropTypes.bool, + PropTypes.array + ]), }