diff --git a/src/components/modals/AddModal.jsx b/src/components/modals/AddModal.jsx index feb83434..b42b736f 100644 --- a/src/components/modals/AddModal.jsx +++ b/src/components/modals/AddModal.jsx @@ -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; diff --git a/src/components/sources/SourceTypeEditor.jsx b/src/components/sources/SourceTypeEditor.jsx index c55b46d2..de8c9022 100644 --- a/src/components/sources/SourceTypeEditor.jsx +++ b/src/components/sources/SourceTypeEditor.jsx @@ -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) {