diff options
author | 2022-10-26 18:49:54 +0530 | |
---|---|---|
committer | 2022-10-26 19:26:39 +0530 | |
commit | 47af2abe2c7dfa1b18494092278cbfb0a54f5db5 (patch) | |
tree | 6866f6744456bbc7146aa6120cbf5022976a9b1f /src/containers/settings | |
parent | Upgrade 'macos-notification-state' to git SHA from fork '0a168f5b1f94c1fd3c08... (diff) | |
download | ferdium-app-47af2abe2c7dfa1b18494092278cbfb0a54f5db5.tar.gz ferdium-app-47af2abe2c7dfa1b18494092278cbfb0a54f5db5.tar.zst ferdium-app-47af2abe2c7dfa1b18494092278cbfb0a54f5db5.zip |
refactor: convert AccountDashboard to typescript
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/AccountScreen.tsx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/containers/settings/AccountScreen.tsx b/src/containers/settings/AccountScreen.tsx index e072b28af..55aa1e5c9 100644 --- a/src/containers/settings/AccountScreen.tsx +++ b/src/containers/settings/AccountScreen.tsx | |||
@@ -9,12 +9,6 @@ import { LIVE_FRANZ_API } from '../../config'; | |||
9 | import { WEBSITE } from '../../environment-remote'; | 9 | import { WEBSITE } from '../../environment-remote'; |
10 | 10 | ||
11 | class AccountScreen extends Component<StoresProps> { | 11 | class AccountScreen extends Component<StoresProps> { |
12 | onCloseWindow(): void { | ||
13 | const { user, features } = this.props.stores; | ||
14 | user.getUserInfoRequest.invalidate({ immediately: true }); | ||
15 | features.featuresRequest.invalidate({ immediately: true }); | ||
16 | } | ||
17 | |||
18 | reloadData(): void { | 12 | reloadData(): void { |
19 | const { user } = this.props.stores; | 13 | const { user } = this.props.stores; |
20 | 14 | ||
@@ -53,7 +47,6 @@ class AccountScreen extends Component<StoresProps> { | |||
53 | user.getUserInfoRequest.isError | 47 | user.getUserInfoRequest.isError |
54 | } | 48 | } |
55 | retryUserInfoRequest={() => this.reloadData()} | 49 | retryUserInfoRequest={() => this.reloadData()} |
56 | onCloseSubscriptionWindow={() => this.onCloseWindow()} | ||
57 | deleteAccount={userActions.delete} | 50 | deleteAccount={userActions.delete} |
58 | isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} | 51 | isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} |
59 | isDeleteAccountSuccessful={ | 52 | isDeleteAccountSuccessful={ |