mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:51:16 +01:00
Fixed more lint errors.
This commit is contained in:
parent
77da0a6d30
commit
d80d76724c
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue