mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-29 11:10:27 +01:00
Fixed lint errors.
This commit is contained in:
parent
1941fdf8a0
commit
61808d5939
3 changed files with 21 additions and 2 deletions
|
@ -15,6 +15,11 @@ import DeleteStopButton from './_DeleteStopButton'
|
||||||
|
|
||||||
export default class DataProperty extends React.Component {
|
export default class DataProperty extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
|
onChange: PropTypes.func,
|
||||||
|
onDeleteStop: PropTypes.func,
|
||||||
|
onAddStop: PropTypes.func,
|
||||||
|
fieldName: PropTypes.string,
|
||||||
|
fieldSpec: PropTypes.object,
|
||||||
value: PropTypes.oneOfType([
|
value: PropTypes.oneOfType([
|
||||||
PropTypes.object,
|
PropTypes.object,
|
||||||
PropTypes.string,
|
PropTypes.string,
|
||||||
|
|
|
@ -11,7 +11,9 @@ import labelFromFieldName from './_labelFromFieldName'
|
||||||
export default class SpecProperty extends React.Component {
|
export default class SpecProperty extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onZoomClick: PropTypes.func.isRequired,
|
onZoomClick: PropTypes.func.isRequired,
|
||||||
onDataClick: PropTypes.func.isRequired
|
onDataClick: PropTypes.func.isRequired,
|
||||||
|
fieldName: PropTypes.string,
|
||||||
|
fieldSpec: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -15,6 +15,18 @@ import sortNumerically from '../../libs/sort-numerically'
|
||||||
|
|
||||||
export default class ZoomProperty extends React.Component {
|
export default class ZoomProperty extends React.Component {
|
||||||
static propTypes = {
|
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
|
||||||
|
]),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue