diff options
author | dan <dan.abramov@gmail.com> | 2024-03-20 03:24:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 20:24:05 -0700 |
commit | 3d8d1dd1737c11d924bec7d51ae4deb6cb6336b0 (patch) | |
tree | adb96f24141561ba4adfd818e179b0c5c0d2bff1 /src/view/screens/Settings/index.tsx | |
parent | 2e2fae378af09682370e9b4ebf59d32cae1b848c (diff) | |
download | voidsky-3d8d1dd1737c11d924bec7d51ae4deb6cb6336b0.tar.zst |
[Statsig] Track login/logout (#3286)
* [Statsig] Track login/logout * Fix missing attribution
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}`)} |