From 65b0912c4595b0b3cfad0f1d19255f70ba2bc48a Mon Sep 17 00:00:00 2001
From: Stefan Malzner
Date: Mon, 14 Oct 2019 13:59:48 +0200
Subject: Move checkout to in app instead of external handling
---
src/containers/settings/AccountScreen.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'src/containers/settings/AccountScreen.js')
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index 9c74cf2ab..b0354c86b 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -5,6 +5,7 @@ import { inject, observer } from 'mobx-react';
import PaymentStore from '../../stores/PaymentStore';
import UserStore from '../../stores/UserStore';
import AppStore from '../../stores/AppStore';
+import FeaturesStore from '../../stores/FeaturesStore';
import AccountDashboard from '../../components/settings/account/AccountDashboard';
import ErrorBoundary from '../../components/util/ErrorBoundary';
@@ -12,8 +13,9 @@ import { WEBSITE } from '../../environment';
export default @inject('stores', 'actions') @observer class AccountScreen extends Component {
onCloseWindow() {
- const { user } = this.props.stores;
+ const { user, features } = this.props.stores;
user.getUserInfoRequest.invalidate({ immediately: true });
+ features.featuresRequest.invalidate({ immediately: true });
}
reloadData() {
@@ -65,6 +67,7 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend
AccountScreen.wrappedComponent.propTypes = {
stores: PropTypes.shape({
user: PropTypes.instanceOf(UserStore).isRequired,
+ features: PropTypes.instanceOf(FeaturesStore).isRequired,
payment: PropTypes.instanceOf(PaymentStore).isRequired,
app: PropTypes.instanceOf(AppStore).isRequired,
}).isRequired,
--
cgit v1.2.3-70-g09d2
From 86b692b8e6c9710f216b17a04d96a815a8715387 Mon Sep 17 00:00:00 2001
From: Stefan Malzner
Date: Wed, 16 Oct 2019 22:24:40 +0200
Subject: polishing
---
src/components/settings/account/AccountDashboard.js | 8 +++++---
src/containers/settings/AccountScreen.js | 7 +++++--
src/features/trialStatusBar/containers/TrialStatusBarScreen.js | 2 --
3 files changed, 10 insertions(+), 7 deletions(-)
(limited to 'src/containers/settings/AccountScreen.js')
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js
index 776a8fd08..b4ff072ab 100644
--- a/src/components/settings/account/AccountDashboard.js
+++ b/src/components/settings/account/AccountDashboard.js
@@ -242,14 +242,16 @@ class AccountDashboard extends Component {
>
)}
-
- {!isProUser && (
+ {!isProUser && (
+
- )}
+
+ )}
+