about summary refs log tree commit diff
path: root/src/components/dialogs/SwitchAccount.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-02 18:25:09 +0100
committerGitHub <noreply@github.com>2024-05-02 18:25:09 +0100
commit1a07e23192d06afd3879e89252f1bcfbb33df081 (patch)
treeb3d84d07475a4a97864387025144ea67d81dd5cb /src/components/dialogs/SwitchAccount.tsx
parent5ec945b7625a8daff3baaf76826c2f9e3c12e279 (diff)
downloadvoidsky-1a07e23192d06afd3879e89252f1bcfbb33df081.tar.zst
[Session] Extract selectAccount out (#3812)
Diffstat (limited to 'src/components/dialogs/SwitchAccount.tsx')
-rw-r--r--src/components/dialogs/SwitchAccount.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/dialogs/SwitchAccount.tsx b/src/components/dialogs/SwitchAccount.tsx
index 55628a790..18fc55aaf 100644
--- a/src/components/dialogs/SwitchAccount.tsx
+++ b/src/components/dialogs/SwitchAccount.tsx
@@ -18,7 +18,7 @@ export function SwitchAccountDialog({
 }) {
   const {_} = useLingui()
   const {currentAccount} = useSession()
-  const {onPressSwitchAccount} = useAccountSwitcher()
+  const {onPressSwitchAccount, isSwitchingAccounts} = useAccountSwitcher()
   const {setShowLoggedOut} = useLoggedOutViewControls()
 
   const onSelectAccount = useCallback(
@@ -54,6 +54,7 @@ export function SwitchAccountDialog({
             onSelectAccount={onSelectAccount}
             onSelectOther={onPressAddAccount}
             otherLabel={_(msg`Add account`)}
+            isSwitchingAccounts={isSwitchingAccounts}
           />
         </View>
       </Dialog.ScrollableInner>