diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-10-14 13:59:48 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-10-14 13:59:48 +0200 |
commit | 65b0912c4595b0b3cfad0f1d19255f70ba2bc48a (patch) | |
tree | 8618baeee61abb6f6991b7edf4897b03daffaad9 /src/components/settings/account/AccountDashboard.js | |
parent | only use window.open when url exists (diff) | |
download | ferdium-app-65b0912c4595b0b3cfad0f1d19255f70ba2bc48a.tar.gz ferdium-app-65b0912c4595b0b3cfad0f1d19255f70ba2bc48a.tar.zst ferdium-app-65b0912c4595b0b3cfad0f1d19255f70ba2bc48a.zip |
Move checkout to in app instead of external handling
Diffstat (limited to 'src/components/settings/account/AccountDashboard.js')
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index ac2594604..08e86fda6 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -109,6 +109,7 @@ class AccountDashboard extends Component { | |||
109 | openBilling: PropTypes.func.isRequired, | 109 | openBilling: PropTypes.func.isRequired, |
110 | upgradeToPro: PropTypes.func.isRequired, | 110 | upgradeToPro: PropTypes.func.isRequired, |
111 | openInvoices: PropTypes.func.isRequired, | 111 | openInvoices: PropTypes.func.isRequired, |
112 | onCloseSubscriptionWindow: PropTypes.func.isRequired, | ||
112 | }; | 113 | }; |
113 | 114 | ||
114 | static contextTypes = { | 115 | static contextTypes = { |
@@ -130,6 +131,7 @@ class AccountDashboard extends Component { | |||
130 | openBilling, | 131 | openBilling, |
131 | upgradeToPro, | 132 | upgradeToPro, |
132 | openInvoices, | 133 | openInvoices, |
134 | onCloseSubscriptionWindow, | ||
133 | } = this.props; | 135 | } = this.props; |
134 | const { intl } = this.context; | 136 | const { intl } = this.context; |
135 | 137 | ||
@@ -263,7 +265,9 @@ class AccountDashboard extends Component { | |||
263 | {!user.isPremium && ( | 265 | {!user.isPremium && ( |
264 | <div className="account franz-form"> | 266 | <div className="account franz-form"> |
265 | <div className="account__box"> | 267 | <div className="account__box"> |
266 | <SubscriptionForm /> | 268 | <SubscriptionForm |
269 | onCloseWindow={onCloseSubscriptionWindow} | ||
270 | /> | ||
267 | </div> | 271 | </div> |
268 | </div> | 272 | </div> |
269 | )} | 273 | )} |