Fixed more lint errors.

This commit is contained in:
orangemug
2018-05-17 11:46:33 +01:00
parent 77da0a6d30
commit d80d76724c
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class AddModal extends React.Component {
} }
} }
componentWillUpdate(nextProps, nextState) { UNSAFE_componentWillUpdate(nextProps, nextState) {
// Check if source is valid for new type // Check if source is valid for new type
const oldType = this.state.type; const oldType = this.state.type;
const newType = nextState.type; const newType = nextState.type;
@@ -11,6 +11,7 @@ class TileJSONSourceEditor extends React.Component {
static propTypes = { static propTypes = {
source: PropTypes.object.isRequired, source: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired, onChange: PropTypes.func.isRequired,
children: PropTypes.node,
} }
render() { render() {
@@ -33,6 +34,7 @@ class TileURLSourceEditor extends React.Component {
static propTypes = { static propTypes = {
source: PropTypes.object.isRequired, source: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired, onChange: PropTypes.func.isRequired,
children: PropTypes.node,
} }
changeTileUrl(idx, value) { changeTileUrl(idx, value) {