From 0168aada372d6a42f8ee4557f6d6dcfa1a81ed71 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 5 Oct 2023 15:55:31 -0700 Subject: Pull upstream bugfixes to bottom-sheet (#1606) * Bump bottom-sheet to latest for bugfixes * Small tweak to the account switcher --- src/view/com/modals/SwitchAccount.tsx | 113 ++++++++++++++++------------------ 1 file changed, 54 insertions(+), 59 deletions(-) (limited to 'src') diff --git a/src/view/com/modals/SwitchAccount.tsx b/src/view/com/modals/SwitchAccount.tsx index 51d75e3ef..d5fa32692 100644 --- a/src/view/com/modals/SwitchAccount.tsx +++ b/src/view/com/modals/SwitchAccount.tsx @@ -37,74 +37,69 @@ export function Component({}: {}) { }, [track, store]) return ( - + Switch Account - - {isSwitching ? ( + {isSwitching ? ( + + + + ) : ( + - - - ) : ( - - - - - - - - {store.me.displayName || store.me.handle} - - - {store.me.handle} - - - - - Sign out - - - - - )} - {store.session.switchableAccounts.map(account => ( - onPressSwitchAccount(account) - } - accessibilityRole="button" - accessibilityLabel={`Switch to ${account.handle}`} - accessibilityHint="Switches the account you are logged in to"> - + - - {account.displayName || account.handle} + + {store.me.displayName || store.me.handle} - - {account.handle} + + {store.me.handle} - - - ))} - - + + + Sign out + + + + + )} + {store.session.switchableAccounts.map(account => ( + onPressSwitchAccount(account) + } + accessibilityRole="button" + accessibilityLabel={`Switch to ${account.handle}`} + accessibilityHint="Switches the account you are logged in to"> + + + + + + {account.displayName || account.handle} + + + {account.handle} + + + + + ))} + ) } @@ -113,7 +108,7 @@ const styles = StyleSheet.create({ flex: 1, }, innerContainer: { - paddingBottom: 20, + paddingBottom: 40, }, title: { textAlign: 'center', -- cgit 1.4.1