diff options
author | 2019-08-08 19:50:17 +0200 | |
---|---|---|
committer | 2019-08-08 19:50:17 +0200 | |
commit | 524d55f46e3834a84db17945eaa1c65891f06547 (patch) | |
tree | e7b1e5dcd77d1b094fd5bc911e75bf40c47862cc /src/containers | |
parent | Fix service restriction on pro plan (diff) | |
download | ferdium-app-524d55f46e3834a84db17945eaa1c65891f06547.tar.gz ferdium-app-524d55f46e3834a84db17945eaa1c65891f06547.tar.zst ferdium-app-524d55f46e3834a84db17945eaa1c65891f06547.zip |
Add option to subscribe to trial via account dashboard
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/subscription/SubscriptionFormScreen.js | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/containers/subscription/SubscriptionFormScreen.js b/src/containers/subscription/SubscriptionFormScreen.js index aa1166f5e..7486cc498 100644 --- a/src/containers/subscription/SubscriptionFormScreen.js +++ b/src/containers/subscription/SubscriptionFormScreen.js | |||
@@ -74,28 +74,14 @@ export default @inject('stores', 'actions') @observer class SubscriptionFormScre | |||
74 | 74 | ||
75 | render() { | 75 | render() { |
76 | const { | 76 | const { |
77 | content, | ||
78 | actions, | 77 | actions, |
79 | stores, | 78 | stores, |
80 | showSkipOption, | ||
81 | skipAction, | ||
82 | skipButtonLabel, | ||
83 | hideInfo, | ||
84 | } = this.props; | 79 | } = this.props; |
85 | return ( | 80 | return ( |
86 | <SubscriptionForm | 81 | <SubscriptionForm |
87 | plan={stores.payment.plan} | 82 | plan={stores.payment.plan} |
88 | isLoading={stores.payment.plansRequest.isExecuting} | 83 | activateTrial={() => actions.user.activateTrial({ planId: stores.features.features.defaultTrialPlan })} |
89 | retryPlanRequest={() => stores.payment.plansRequest.reload()} | 84 | isActivatingTrial={stores.user.activateTrialRequest.isExecuting || stores.user.getUserInfoRequest.isExecuting} |
90 | isCreatingHostedPage={stores.payment.createHostedPageRequest.isExecuting} | ||
91 | handlePayment={price => this.handlePayment(price)} | ||
92 | content={content} | ||
93 | error={stores.payment.plansRequest.isError} | ||
94 | showSkipOption={showSkipOption} | ||
95 | skipAction={skipAction} | ||
96 | skipButtonLabel={skipButtonLabel} | ||
97 | hideInfo={hideInfo} | ||
98 | openExternalUrl={actions.app.openExternalUrl} | ||
99 | /> | 85 | /> |
100 | ); | 86 | ); |
101 | } | 87 | } |