diff options
Diffstat (limited to 'src/components/ui/ActivateTrialButton/index.js')
-rw-r--r-- | src/components/ui/ActivateTrialButton/index.js | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/components/ui/ActivateTrialButton/index.js b/src/components/ui/ActivateTrialButton/index.js index c3e5f4a6f..e0637da90 100644 --- a/src/components/ui/ActivateTrialButton/index.js +++ b/src/components/ui/ActivateTrialButton/index.js | |||
@@ -26,13 +26,23 @@ const messages = defineMessages({ | |||
26 | id: 'feature.delayApp.trial.actionShort', | 26 | id: 'feature.delayApp.trial.actionShort', |
27 | defaultMessage: '!!!Activate the free Franz Professional trial', | 27 | defaultMessage: '!!!Activate the free Franz Professional trial', |
28 | }, | 28 | }, |
29 | noStringsAttachedHeadline: { | ||
30 | id: 'pricing.trial.terms.headline', | ||
31 | defaultMessage: '!!!No strings attached', | ||
32 | }, | ||
33 | noCreditCard: { | ||
34 | id: 'pricing.trial.terms.noCreditCard', | ||
35 | defaultMessage: '!!!No credit card required', | ||
36 | }, | ||
37 | automaticTrialEnd: { | ||
38 | id: 'pricing.trial.terms.automaticTrialEnd', | ||
39 | defaultMessage: '!!!Your free trial ends automatically after 14 days', | ||
40 | }, | ||
29 | }); | 41 | }); |
30 | 42 | ||
31 | @inject('stores', 'actions') @observer | 43 | @inject('stores', 'actions') @observer |
32 | class ActivateTrialButton extends Component { | 44 | class ActivateTrialButton extends Component { |
33 | static propTypes = { | 45 | static propTypes = { |
34 | // eslint-disable-next-line | ||
35 | classes: PropTypes.object.isRequired, | ||
36 | className: PropTypes.string, | 46 | className: PropTypes.string, |
37 | short: PropTypes.bool, | 47 | short: PropTypes.bool, |
38 | gaEventInfo: PropTypes.shape({ | 48 | gaEventInfo: PropTypes.shape({ |
@@ -55,19 +65,19 @@ class ActivateTrialButton extends Component { | |||
55 | handleCTAClick() { | 65 | handleCTAClick() { |
56 | const { actions, stores, gaEventInfo } = this.props; | 66 | const { actions, stores, gaEventInfo } = this.props; |
57 | const { hadSubscription } = stores.user.data; | 67 | const { hadSubscription } = stores.user.data; |
58 | const { defaultTrialPlan } = stores.features.features; | 68 | // const { defaultTrialPlan } = stores.features.features; |
59 | 69 | ||
60 | let label = ''; | 70 | let label = ''; |
61 | if (!hadSubscription) { | 71 | if (!hadSubscription) { |
62 | actions.user.activateTrial({ planId: defaultTrialPlan }); | 72 | // actions.user.activateTrial({ planId: defaultTrialPlan }); |
63 | 73 | ||
64 | label = 'Start Trial'; | 74 | label = 'Start Trial'; |
65 | } else { | 75 | } else { |
66 | actions.ui.openSettings({ path: 'user' }); | ||
67 | |||
68 | label = 'Upgrade Account'; | 76 | label = 'Upgrade Account'; |
69 | } | 77 | } |
70 | 78 | ||
79 | actions.ui.openSettings({ path: 'user' }); | ||
80 | |||
71 | if (gaEventInfo) { | 81 | if (gaEventInfo) { |
72 | const { category, event } = gaEventInfo; | 82 | const { category, event } = gaEventInfo; |
73 | gaEvent(category, event, label); | 83 | gaEvent(category, event, label); |