aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/AccountScreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r--src/containers/settings/AccountScreen.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index 8d92b01be..cc3929656 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -12,7 +12,6 @@ import ErrorBoundary from '../../components/util/ErrorBoundary';
12import { LIVE_FRANZ_API } from '../../config'; 12import { LIVE_FRANZ_API } from '../../config';
13import { WEBSITE } from '../../environment'; 13import { WEBSITE } from '../../environment';
14 14
15export default
16@inject('stores', 'actions') 15@inject('stores', 'actions')
17@observer 16@observer
18class AccountScreen extends Component { 17class AccountScreen extends Component {
@@ -58,16 +57,16 @@ class AccountScreen extends Component {
58 user={user.data} 57 user={user.data}
59 isLoading={isLoadingUserInfo} 58 isLoading={isLoadingUserInfo}
60 userInfoRequestFailed={ 59 userInfoRequestFailed={
61 user.getUserInfoRequest.wasExecuted 60 user.getUserInfoRequest.wasExecuted &&
62 && user.getUserInfoRequest.isError 61 user.getUserInfoRequest.isError
63 } 62 }
64 retryUserInfoRequest={() => this.reloadData()} 63 retryUserInfoRequest={() => this.reloadData()}
65 onCloseSubscriptionWindow={() => this.onCloseWindow()} 64 onCloseSubscriptionWindow={() => this.onCloseWindow()}
66 deleteAccount={userActions.delete} 65 deleteAccount={userActions.delete}
67 isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} 66 isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting}
68 isDeleteAccountSuccessful={ 67 isDeleteAccountSuccessful={
69 user.deleteAccountRequest.wasExecuted 68 user.deleteAccountRequest.wasExecuted &&
70 && !user.deleteAccountRequest.isError 69 !user.deleteAccountRequest.isError
71 } 70 }
72 openEditAccount={() => this.handleWebsiteLink('/user/profile')} 71 openEditAccount={() => this.handleWebsiteLink('/user/profile')}
73 openInvoices={() => this.handleWebsiteLink('/user/invoices')} 72 openInvoices={() => this.handleWebsiteLink('/user/invoices')}
@@ -89,3 +88,5 @@ AccountScreen.wrappedComponent.propTypes = {
89 user: PropTypes.instanceOf(UserStore).isRequired, 88 user: PropTypes.instanceOf(UserStore).isRequired,
90 }).isRequired, 89 }).isRequired,
91}; 90};
91
92export default AccountScreen;