Change unsafe lifecycle methods to other methods
[MAILPOET-2438]
This commit is contained in:
committed by
Jack Kitterhing
parent
0962506fb5
commit
e4dd097090
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import MailPoet from 'mailpoet';
|
import MailPoet from 'mailpoet';
|
||||||
|
|
||||||
class Loading extends React.Component {
|
class Loading extends React.Component {
|
||||||
componentWillMount() {
|
componentDidMount() {
|
||||||
MailPoet.Modal.loading(true);
|
MailPoet.Modal.loading(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ class NewsletterTemplates extends React.Component {
|
|||||||
this.afterTemplateImport = this.afterTemplateImport.bind(this);
|
this.afterTemplateImport = this.afterTemplateImport.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentDidMount() {
|
||||||
MailPoet.Ajax.get({
|
MailPoet.Ajax.get({
|
||||||
api_version: window.mailpoet_api_version,
|
api_version: window.mailpoet_api_version,
|
||||||
endpoint: 'newsletterTemplates',
|
endpoint: 'newsletterTemplates',
|
||||||
|
Reference in New Issue
Block a user