diff options
author | dan <dan.abramov@gmail.com> | 2024-05-02 18:25:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 18:25:09 +0100 |
commit | 1a07e23192d06afd3879e89252f1bcfbb33df081 (patch) | |
tree | b3d84d07475a4a97864387025144ea67d81dd5cb /src/components/AccountList.tsx | |
parent | 5ec945b7625a8daff3baaf76826c2f9e3c12e279 (diff) | |
download | voidsky-1a07e23192d06afd3879e89252f1bcfbb33df081.tar.zst |
[Session] Extract selectAccount out (#3812)
Diffstat (limited to 'src/components/AccountList.tsx')
-rw-r--r-- | src/components/AccountList.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/AccountList.tsx b/src/components/AccountList.tsx index 169e7b84f..76596df3e 100644 --- a/src/components/AccountList.tsx +++ b/src/components/AccountList.tsx @@ -16,12 +16,14 @@ export function AccountList({ onSelectAccount, onSelectOther, otherLabel, + isSwitchingAccounts, }: { onSelectAccount: (account: SessionAccount) => void onSelectOther: () => void otherLabel?: string + isSwitchingAccounts: boolean }) { - const {isSwitchingAccounts, currentAccount, accounts} = useSession() + const {currentAccount, accounts} = useSession() const t = useTheme() const {_} = useLingui() |