From 86b692b8e6c9710f216b17a04d96a815a8715387 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 16 Oct 2019 22:24:40 +0200 Subject: polishing --- src/containers/settings/AccountScreen.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/containers/settings/AccountScreen.js') diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index b0354c86b..b08b52e6f 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js @@ -34,12 +34,14 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend } render() { - const { user, payment } = this.props.stores; + const { user, payment, features } = this.props.stores; const { user: userActions } = this.props.actions; const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; const isLoadingPlans = payment.plansRequest.isExecuting; + const { upgradeAccount } = payment; + return ( this.handleWebsiteLink('/user/profile')} - upgradeToPro={() => this.handleWebsiteLink('/inapp/user/licenses')} + upgradeToPro={() => upgradeAccount({ planId: features.features.pricingConfig.pro.yearly.id })} openBilling={() => this.handleWebsiteLink('/user/billing')} openInvoices={() => this.handleWebsiteLink('/user/invoices')} /> @@ -74,6 +76,7 @@ AccountScreen.wrappedComponent.propTypes = { actions: PropTypes.shape({ payment: PropTypes.shape({ createDashboardUrl: PropTypes.func.isRequired, + upgradeAccount: PropTypes.func.isRequired, }).isRequired, app: PropTypes.shape({ openExternalUrl: PropTypes.func.isRequired, -- cgit v1.2.3-54-g00ecf