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

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
const oldType = this.state.type;
const newType = nextState.type;

View file

@ -11,6 +11,7 @@ class TileJSONSourceEditor extends React.Component {
static propTypes = {
source: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
children: PropTypes.node,
}
render() {
@ -33,6 +34,7 @@ class TileURLSourceEditor extends React.Component {
static propTypes = {
source: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
children: PropTypes.node,
}
changeTileUrl(idx, value) {