Skip to content

Commit

Permalink
remove deprecated lifecycle methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaportenko committed Oct 15, 2019
1 parent 48d6462 commit 199410e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/account/AddAccountAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ThemeContext } from '../../theme';
class AddAccountAddress extends Component {
static contextType = ThemeContext;

componentWillMount() {
componentDidMount() {
this.props.getCountries();
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/catalog/CategoryTreeListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CategoryTreeListItem extends Component {

state = { expanded: false };

componentWillUpdate() {
componentDidUpdate() {
const switchAnimation = {
duration: 150,
update: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/checkout/CheckoutCustomerAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ThemeContext } from '../../theme';
class CheckoutCustomerAccount extends Component {
static contextType = ThemeContext;

componentWillMount() {
componentDidMount() {
this.props.getCountries();
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/checkout/CheckoutPaymentMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ThemeContext } from '../../theme';
class CheckoutPaymentMethod extends Component {
static contextType = ThemeContext;

componentWillMount() {
componentDidMount() {
const { payments, selectedPayment } = this.props;
if (!selectedPayment && payments.length) {
this.props.checkoutSelectedPaymentChanged(payments[0]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/checkout/CheckoutShippingMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ThemeContext } from '../../theme';
class CheckoutShippingMethod extends Component {
static contextType = ThemeContext;

componentWillMount() {
componentDidMount() {
const { shipping, selectedShipping } = this.props;
if (!selectedShipping && shipping.length) {
this.props.checkoutSelectedShippingChanged(shipping[0]);
Expand Down

0 comments on commit 199410e

Please sign in to comment.