aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings/account
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-24 15:15:42 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-24 15:15:42 +0200
commit54f8b191a94bd78a85b046bbf21dd2245d3a6f3e (patch)
treeada5876f0e8a697ba4693bba07f5e0f31fea1fc9 /src/components/settings/account
parentUpdate submodules (diff)
parentbump version to 5.4.0 (diff)
downloadferdium-app-54f8b191a94bd78a85b046bbf21dd2245d3a6f3e.tar.gz
ferdium-app-54f8b191a94bd78a85b046bbf21dd2245d3a6f3e.tar.zst
ferdium-app-54f8b191a94bd78a85b046bbf21dd2245d3a6f3e.zip
Merge https://github.com/meetfranz/franz into franz-5.4.0-release
Diffstat (limited to 'src/components/settings/account')
-rw-r--r--src/components/settings/account/AccountDashboard.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js
index f588449f4..83dc34a52 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
@@ -215,7 +217,9 @@ class AccountDashboard extends Component {
215 {intl.formatMessage(messages.yourLicense)} 217 {intl.formatMessage(messages.yourLicense)}
216 </H2> 218 </H2>
217 <p> 219 <p>
218 {isPremiumOverrideUser ? 'Franz Premium' : planName} 220 Franz
221 {' '}
222 {isPremiumOverrideUser ? 'Premium' : planName}
219 {user.team.isTrial && ( 223 {user.team.isTrial && (
220 <> 224 <>
221 {' – '} 225 {' – '}
@@ -238,14 +242,16 @@ class AccountDashboard extends Component {
238 </p> 242 </p>
239 </> 243 </>
240 )} 244 )}
241 <div className="manage-user-links"> 245 {!isProUser && (
242 {!isProUser && ( 246 <div className="manage-user-links">
243 <Button 247 <Button
244 label={intl.formatMessage(messages.upgradeAccountToPro)} 248 label={intl.formatMessage(messages.upgradeAccountToPro)}
245 className="franz-form__button--primary" 249 className="franz-form__button--primary"
246 onClick={upgradeToPro} 250 onClick={upgradeToPro}
247 /> 251 />
248 )} 252 </div>
253 )}
254 <div className="manage-user-links">
249 <Button 255 <Button
250 label={intl.formatMessage(messages.manageSubscriptionButtonLabel)} 256 label={intl.formatMessage(messages.manageSubscriptionButtonLabel)}
251 className="franz-form__button--inverted" 257 className="franz-form__button--inverted"
@@ -263,7 +269,9 @@ class AccountDashboard extends Component {
263 {!user.isPremium && ( 269 {!user.isPremium && (
264 <div className="account franz-form"> 270 <div className="account franz-form">
265 <div className="account__box"> 271 <div className="account__box">
266 <SubscriptionForm /> 272 <SubscriptionForm
273 onCloseWindow={onCloseSubscriptionWindow}
274 />
267 </div> 275 </div>
268 </div> 276 </div>
269 )} 277 )}