Use the new UNSAFE_componentWillReceiveProps function name

We should redesign these, but until then, this should unbreak linting.
master
Tom Hacohen 2019-11-24 16:26:57 +02:00
parent d4126e263f
commit d3b4145269
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {