aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/AccountScreen.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-17 10:58:45 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-17 10:58:45 +0200
commitab78d8ad9097ce92eae337f319245819ba93ca40 (patch)
tree7690407b22b857a58103eee938bfac7761e19bb0 /src/containers/settings/AccountScreen.js
parentpolishing (diff)
downloadferdium-app-ab78d8ad9097ce92eae337f319245819ba93ca40.tar.gz
ferdium-app-ab78d8ad9097ce92eae337f319245819ba93ca40.tar.zst
ferdium-app-ab78d8ad9097ce92eae337f319245819ba93ca40.zip
polishing
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r--src/containers/settings/AccountScreen.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index b08b52e6f..88ecd55d5 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -35,12 +35,15 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend
35 35
36 render() { 36 render() {
37 const { user, payment, features } = this.props.stores; 37 const { user, payment, features } = this.props.stores;
38 const { user: userActions } = this.props.actions; 38 const {
39 user: userActions,
40 payment: paymentActions,
41 } = this.props.actions;
39 42
40 const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; 43 const isLoadingUserInfo = user.getUserInfoRequest.isExecuting;
41 const isLoadingPlans = payment.plansRequest.isExecuting; 44 const isLoadingPlans = payment.plansRequest.isExecuting;
42 45
43 const { upgradeAccount } = payment; 46 const { upgradeAccount } = paymentActions;
44 47
45 return ( 48 return (
46 <ErrorBoundary> 49 <ErrorBoundary>
@@ -57,7 +60,7 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend
57 isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} 60 isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting}
58 isDeleteAccountSuccessful={user.deleteAccountRequest.wasExecuted && !user.deleteAccountRequest.isError} 61 isDeleteAccountSuccessful={user.deleteAccountRequest.wasExecuted && !user.deleteAccountRequest.isError}
59 openEditAccount={() => this.handleWebsiteLink('/user/profile')} 62 openEditAccount={() => this.handleWebsiteLink('/user/profile')}
60 upgradeToPro={() => upgradeAccount({ planId: features.features.pricingConfig.pro.yearly.id })} 63 upgradeToPro={() => upgradeAccount({ planId: features.features.pricingConfig.plans.pro.yearly.id })}
61 openBilling={() => this.handleWebsiteLink('/user/billing')} 64 openBilling={() => this.handleWebsiteLink('/user/billing')}
62 openInvoices={() => this.handleWebsiteLink('/user/invoices')} 65 openInvoices={() => this.handleWebsiteLink('/user/invoices')}
63 /> 66 />