diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-03-19 20:24:18 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-03-19 20:24:18 -0700 |
commit | b5bda17812a73fcbd612b54b7d73316610a68d7e (patch) | |
tree | da211145aace25c3ff141839337e7059ceac1085 /src/view/screens/Settings/index.tsx | |
parent | 6255e33b501c1cd8d0b1e741516f4ab54a84098d (diff) | |
parent | 3d8d1dd1737c11d924bec7d51ae4deb6cb6336b0 (diff) | |
download | voidsky-b5bda17812a73fcbd612b54b7d73316610a68d7e.tar.zst |
Merge branch 'main' of github.com:bluesky-social/social-app into main
Diffstat (limited to 'src/view/screens/Settings/index.tsx')
-rw-r--r-- | src/view/screens/Settings/index.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/screens/Settings/index.tsx b/src/view/screens/Settings/index.tsx index 7e808f910..3967678b4 100644 --- a/src/view/screens/Settings/index.tsx +++ b/src/view/screens/Settings/index.tsx @@ -100,7 +100,9 @@ function SettingsAccountCard({account}: {account: SessionAccount}) { {isCurrentAccount ? ( <TouchableOpacity testID="signOutBtn" - onPress={logout} + onPress={() => { + logout('Settings') + }} accessibilityRole="button" accessibilityLabel={_(msg`Sign out`)} accessibilityHint={`Signs ${profile?.displayName} out of Bluesky`}> @@ -129,7 +131,9 @@ function SettingsAccountCard({account}: {account: SessionAccount}) { testID={`switchToAccountBtn-${account.handle}`} key={account.did} onPress={ - isSwitchingAccounts ? undefined : () => onPressSwitchAccount(account) + isSwitchingAccounts + ? undefined + : () => onPressSwitchAccount(account, 'Settings') } accessibilityRole="button" accessibilityLabel={_(msg`Switch to ${account.handle}`)} |