Use the new UNSAFE_componentWillReceiveProps function name

We should redesign these, but until then, this should unbreak linting.
master
Tom Hacohen 5 years ago
parent d4126e263f
commit d3b4145269

@ -199,7 +199,7 @@ class ContactEdit extends React.PureComponent<PropsType> {
this.onDeleteRequest = this.onDeleteRequest.bind(this);
}
public componentWillReceiveProps(nextProps: any) {
public UNSAFE_componentWillReceiveProps(nextProps: any) {
if ((this.props.collections !== nextProps.collections) ||
(this.props.initialCollection !== nextProps.initialCollection)) {
if (nextProps.initialCollection) {

@ -114,7 +114,7 @@ class EventEdit extends React.PureComponent<PropsType> {
this.onDeleteRequest = this.onDeleteRequest.bind(this);
}
public componentWillReceiveProps(nextProps: any) {
public UNSAFE_componentWillReceiveProps(nextProps: any) {
if ((this.props.collections !== nextProps.collections) ||
(this.props.initialCollection !== nextProps.initialCollection)) {
if (nextProps.initialCollection) {

@ -102,7 +102,7 @@ class TaskEdit extends React.PureComponent<PropsType> {
this.onDeleteRequest = this.onDeleteRequest.bind(this);
}
public componentWillReceiveProps(nextProps: any) {
public UNSAFE_componentWillReceiveProps(nextProps: any) {
if ((this.props.collections !== nextProps.collections) ||
(this.props.initialCollection !== nextProps.initialCollection)) {
if (nextProps.initialCollection) {

Loading…
Cancel
Save