From 1a07e23192d06afd3879e89252f1bcfbb33df081 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 2 May 2024 18:25:09 +0100 Subject: [Session] Extract selectAccount out (#3812) --- src/components/dialogs/SwitchAccount.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/dialogs/SwitchAccount.tsx') 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} /> -- cgit 1.4.1