mirror of
https://github.com/maputnik/editor.git
synced 2026-08-26 15:07:41 +00:00
Fixed more lint errors.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user