diff options
author | 2021-07-17 20:32:22 +0530 | |
---|---|---|
committer | 2021-07-20 16:02:15 +0000 | |
commit | 45373f655f68fdd0b320cde175b6108454ad4731 (patch) | |
tree | c1ccb0c73639d754b68a36a1977b74471fe4b566 /src/components/subscription/SubscriptionForm.js | |
parent | New Crowdin updates (#1668) (diff) | |
download | ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.tar.gz ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.tar.zst ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.zip |
Removed Franz paid plans features:
- serviceLimit
- planSelection
- trialStatusBar
and other Franz features that were for different tiers of subscription.
Diffstat (limited to 'src/components/subscription/SubscriptionForm.js')
-rw-r--r-- | src/components/subscription/SubscriptionForm.js | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/src/components/subscription/SubscriptionForm.js b/src/components/subscription/SubscriptionForm.js deleted file mode 100644 index ec486e5d0..000000000 --- a/src/components/subscription/SubscriptionForm.js +++ /dev/null | |||
@@ -1,78 +0,0 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { observer } from 'mobx-react'; | ||
4 | import { defineMessages, intlShape } from 'react-intl'; | ||
5 | import injectSheet from 'react-jss'; | ||
6 | |||
7 | import { H3, H2 } from '@meetfranz/ui'; | ||
8 | |||
9 | import { Button } from '@meetfranz/forms'; | ||
10 | import { FeatureList } from '../ui/FeatureList'; | ||
11 | |||
12 | const messages = defineMessages({ | ||
13 | submitButtonLabel: { | ||
14 | id: 'subscription.cta.choosePlan', | ||
15 | defaultMessage: '!!!Choose your plan', | ||
16 | }, | ||
17 | teaserHeadline: { | ||
18 | id: 'settings.account.headlineUpgradeAccount', | ||
19 | defaultMessage: '!!!Upgrade your account and get the full Franz experience', | ||
20 | }, | ||
21 | teaserText: { | ||
22 | id: 'subscription.teaser.intro', | ||
23 | defaultMessage: '!!!Franz 5 comes with a wide range of new features to boost up your everyday communication - batteries included. Check out our new plans and find out which one suits you most!', | ||
24 | }, | ||
25 | includedFeatures: { | ||
26 | id: 'subscription.teaser.includedFeatures', | ||
27 | defaultMessage: '!!!Paid Franz Plans include:', | ||
28 | }, | ||
29 | }); | ||
30 | |||
31 | const styles = () => ({ | ||
32 | activateTrialButton: { | ||
33 | margin: [40, 'auto', 50], | ||
34 | display: 'flex', | ||
35 | }, | ||
36 | }); | ||
37 | |||
38 | export default @injectSheet(styles) @observer class SubscriptionForm extends Component { | ||
39 | static propTypes = { | ||
40 | selectPlan: PropTypes.func.isRequired, | ||
41 | isActivatingTrial: PropTypes.bool.isRequired, | ||
42 | classes: PropTypes.object.isRequired, | ||
43 | }; | ||
44 | |||
45 | static contextTypes = { | ||
46 | intl: intlShape, | ||
47 | }; | ||
48 | |||
49 | render() { | ||
50 | const { | ||
51 | isActivatingTrial, | ||
52 | selectPlan, | ||
53 | classes, | ||
54 | } = this.props; | ||
55 | const { intl } = this.context; | ||
56 | |||
57 | return ( | ||
58 | <> | ||
59 | <H2>{intl.formatMessage(messages.teaserHeadline)}</H2> | ||
60 | <p>{intl.formatMessage(messages.teaserText)}</p> | ||
61 | <Button | ||
62 | label={intl.formatMessage(messages.submitButtonLabel)} | ||
63 | className={classes.activateTrialButton} | ||
64 | busy={isActivatingTrial} | ||
65 | onClick={selectPlan} | ||
66 | /> | ||
67 | <div className="subscription__premium-info"> | ||
68 | <H3> | ||
69 | {intl.formatMessage(messages.includedFeatures)} | ||
70 | </H3> | ||
71 | <div className="subscription"> | ||
72 | <FeatureList /> | ||
73 | </div> | ||
74 | </div> | ||
75 | </> | ||
76 | ); | ||
77 | } | ||
78 | } | ||