Fixed eslint errors.

This commit is contained in:
orangemug
2017-11-08 08:47:36 +00:00
parent e0b7cdf9dd
commit 8234c51412
17 changed files with 127 additions and 65 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import InputBlock from '../inputs/InputBlock'
import StringInput from '../inputs/StringInput'
import LayerIcon from '../icons/LayerIcon'
@@ -14,6 +15,10 @@ function groupFeaturesBySourceLayer(features) {
}
class FeatureLayerPopup extends React.Component {
static propTypes = {
features: PropTypes.array
}
render() {
const sources = groupFeaturesBySourceLayer(this.props.features)

View File

@@ -1,4 +1,5 @@
import React from 'react'
import PropTypes from 'prop-types'
import InputBlock from '../inputs/InputBlock'
import StringInput from '../inputs/StringInput'
@@ -31,6 +32,9 @@ function renderFeature(feature) {
}
class FeaturePropertyPopup extends React.Component {
static propTypes = {
features: PropTypes.array
}
render() {
const features = this.props.features

View File

@@ -69,6 +69,7 @@ class OpenLayers3Map extends React.Component {
onDataChange: PropTypes.func,
mapStyle: PropTypes.object.isRequired,
accessToken: PropTypes.string,
style: PropTypes.object,
}
static defaultProps = {