This commit is contained in:
Nathan Bierema 2020-08-01 14:17:14 -04:00
parent fde0fdafd0
commit 9d92d3204a
18 changed files with 19 additions and 19 deletions

View File

@ -57,7 +57,7 @@
"stylelint-processor-styled-components": "^0.0.4"
},
"peerDependencies": {
"react": "^0.14.9 || ^15.3.0"
"react": "^16.3.0"
},
"dependencies": {
"base16": "^1.0.0",

View File

@ -11,7 +11,7 @@ export default class ContextMenu extends Component {
this.updateItems(props.items);
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (
nextProps.items !== this.props.items ||
nextProps.visible !== this.props.visible

View File

@ -28,7 +28,7 @@ export default class Editor extends Component {
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.value !== this.cm.getValue()) {
this.cm.setValue(nextProps.value);
}

View File

@ -9,7 +9,7 @@ export default class Tabs extends Component {
this.updateTabs(props);
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.selected !== this.props.selected) {
this.updateTabs(nextProps);
}

View File

@ -21,7 +21,7 @@ export default class TabsHeader extends Component {
this.hiddenTabsWidth = [];
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (
nextProps.tabs !== this.props.tabs ||
nextProps.selected !== this.props.selected ||

View File

@ -92,6 +92,6 @@
"styled-components": "^2.4.1"
},
"peerDependencies": {
"react": "^16.0.0"
"react": "^16.3.0"
}
}

View File

@ -53,7 +53,7 @@ class Connection extends Component {
return this.state !== nextState;
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (this.props.options !== nextProps.options) {
this.setState({
formData: { ...nextProps.options, type: nextProps.type }

View File

@ -38,7 +38,7 @@ class DevTools extends Component {
}
}
componentWillUpdate(nextProps) {
UNSAFE_componentWillUpdate(nextProps) {
if (nextProps.monitor !== this.props.monitor) this.getMonitor(nextProps);
}

View File

@ -62,7 +62,7 @@ class Dispatcher extends Component {
changed: false
};
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (
this.state.selected !== 'default' &&
!nextProps.options.actionCreators

View File

@ -21,7 +21,7 @@ class ChartTab extends Component {
this.createChart(this.props);
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (
this.props.theme.scheme !== nextProps.theme.scheme ||
nextProps.theme.light !== this.props.theme.light

View File

@ -12,7 +12,7 @@ export default class RawTab extends Component {
return nextProps.data !== this.value;
}
componentWillUpdate(nextProps) {
UNSAFE_componentWillUpdate(nextProps) {
this.stringifyData(nextProps);
}

View File

@ -17,7 +17,7 @@ class SubTabs extends Component {
this.updateTabs(props);
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.parentTab !== this.props.parentTab) {
this.updateTabs(nextProps);
}

View File

@ -7,7 +7,7 @@ import { CONNECT_REQUEST } from './constants/socketActionTypes';
import App from './containers/App';
class Root extends Component {
componentWillMount() {
UNSAFE_componentWillMount() {
configureStore((store, preloadedState) => {
this.store = store;
store.dispatch({

View File

@ -56,8 +56,8 @@
"webpack-dev-server": "^3.11.0"
},
"peerDependencies": {
"react": ">=15.0.0",
"react-dom": ">=15.0.0"
"react": "^16.3.0",
"react-dom": "^16.3.0"
},
"author": "Alexander <alexkuz@gmail.com> (http://kuzya.org/)",
"contributors": [

View File

@ -17,7 +17,7 @@ function getTimestamps(actions, actionIds, actionId) {
export default class ActionList extends Component {
shouldComponentUpdate = shouldPureComponentUpdate;
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const node = this.node;
if (!node) {
this.scrollDown = true;

View File

@ -172,7 +172,7 @@ export default class DevtoolsInspector extends Component {
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
let nextMonitorState = nextProps.monitorState;
const monitorState = this.props.monitorState;

View File

@ -43,7 +43,7 @@
"rimraf": "^2.7.1"
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0",
"react": "^16.3.0",
"redux-devtools": "^3.4.0"
},
"dependencies": {

View File

@ -114,7 +114,7 @@ export default class LogMonitor extends Component {
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const node = this.node;
if (!node) {
this.scrollDown = true;