diff options
author | 2019-08-19 12:11:38 +0200 | |
---|---|---|
committer | 2019-08-19 12:11:38 +0200 | |
commit | 478b5fc6574765072eafd4fa074ae832e67627bf (patch) | |
tree | 07dba02a6746685b00106ae2f37b529573876852 /src/components/settings/account | |
parent | remove monthly & yearly names (diff) | |
download | ferdium-app-478b5fc6574765072eafd4fa074ae832e67627bf.tar.gz ferdium-app-478b5fc6574765072eafd4fa074ae832e67627bf.tar.zst ferdium-app-478b5fc6574765072eafd4fa074ae832e67627bf.zip |
Add trial / subscription handling
Diffstat (limited to 'src/components/settings/account')
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index 079d50380..6d10487e8 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -23,10 +23,6 @@ const messages = defineMessages({ | |||
23 | id: 'settings.account.headlineSubscription', | 23 | id: 'settings.account.headlineSubscription', |
24 | defaultMessage: '!!!Your Subscription', | 24 | defaultMessage: '!!!Your Subscription', |
25 | }, | 25 | }, |
26 | headlineUpgrade: { | ||
27 | id: 'settings.account.headlineTrialUpgrade', | ||
28 | defaultMessage: '!!!Get the free 14 day Franz Professional Trial', | ||
29 | }, | ||
30 | headlineDangerZone: { | 26 | headlineDangerZone: { |
31 | id: 'settings.account.headlineDangerZone', | 27 | id: 'settings.account.headlineDangerZone', |
32 | defaultMessage: '!!Danger Zone', | 28 | defaultMessage: '!!Danger Zone', |
@@ -97,10 +93,8 @@ export default @observer class AccountDashboard extends Component { | |||
97 | static propTypes = { | 93 | static propTypes = { |
98 | user: MobxPropTypes.observableObject.isRequired, | 94 | user: MobxPropTypes.observableObject.isRequired, |
99 | isLoading: PropTypes.bool.isRequired, | 95 | isLoading: PropTypes.bool.isRequired, |
100 | isLoadingPlans: PropTypes.bool.isRequired, | ||
101 | userInfoRequestFailed: PropTypes.bool.isRequired, | 96 | userInfoRequestFailed: PropTypes.bool.isRequired, |
102 | retryUserInfoRequest: PropTypes.func.isRequired, | 97 | retryUserInfoRequest: PropTypes.func.isRequired, |
103 | onCloseSubscriptionWindow: PropTypes.func.isRequired, | ||
104 | deleteAccount: PropTypes.func.isRequired, | 98 | deleteAccount: PropTypes.func.isRequired, |
105 | isLoadingDeleteAccount: PropTypes.bool.isRequired, | 99 | isLoadingDeleteAccount: PropTypes.bool.isRequired, |
106 | isDeleteAccountSuccessful: PropTypes.bool.isRequired, | 100 | isDeleteAccountSuccessful: PropTypes.bool.isRequired, |
@@ -117,10 +111,8 @@ export default @observer class AccountDashboard extends Component { | |||
117 | const { | 111 | const { |
118 | user, | 112 | user, |
119 | isLoading, | 113 | isLoading, |
120 | isLoadingPlans, | ||
121 | userInfoRequestFailed, | 114 | userInfoRequestFailed, |
122 | retryUserInfoRequest, | 115 | retryUserInfoRequest, |
123 | onCloseSubscriptionWindow, | ||
124 | deleteAccount, | 116 | deleteAccount, |
125 | isLoadingDeleteAccount, | 117 | isLoadingDeleteAccount, |
126 | isDeleteAccountSuccessful, | 118 | isDeleteAccountSuccessful, |
@@ -134,7 +126,6 @@ export default @observer class AccountDashboard extends Component { | |||
134 | 126 | ||
135 | if (user.team && user.team.plan) { | 127 | if (user.team && user.team.plan) { |
136 | planName = i18nPlanName(user.team.plan, intl); | 128 | planName = i18nPlanName(user.team.plan, intl); |
137 | console.log(planName); | ||
138 | } | 129 | } |
139 | 130 | ||
140 | return ( | 131 | return ( |
@@ -221,7 +212,7 @@ export default @observer class AccountDashboard extends Component { | |||
221 | )} | 212 | )} |
222 | </div> | 213 | </div> |
223 | </div> | 214 | </div> |
224 | {user.isSubscriptionOwner && ( | 215 | {user.isPremium && user.isSubscriptionOwner && ( |
225 | <div className="account"> | 216 | <div className="account"> |
226 | <div className="account__box"> | 217 | <div className="account__box"> |
227 | <H2> | 218 | <H2> |
@@ -268,7 +259,6 @@ export default @observer class AccountDashboard extends Component { | |||
268 | {!user.isPremium && ( | 259 | {!user.isPremium && ( |
269 | <div className="account franz-form"> | 260 | <div className="account franz-form"> |
270 | <div className="account__box"> | 261 | <div className="account__box"> |
271 | <H2>{intl.formatMessage(messages.headlineUpgrade)}</H2> | ||
272 | <SubscriptionForm /> | 262 | <SubscriptionForm /> |
273 | </div> | 263 | </div> |
274 | </div> | 264 | </div> |