diff options
author | dan <dan.abramov@gmail.com> | 2024-03-13 22:31:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 22:31:51 +0000 |
commit | 7eaa573b57c6fb3a37abe105d4a8de10e9b9f893 (patch) | |
tree | febe1e8a6bdad2d071d46af58de32b0b515092e9 /src/view/com/profile/FollowButton.tsx | |
parent | db79c918b2e929c1317cbb91918eb00252fdc136 (diff) | |
download | voidsky-7eaa573b57c6fb3a37abe105d4a8de10e9b9f893.tar.zst |
[Statsig] Track likes, reposts, follows (#3195)
* [Statsig] Track likes * Move tracking to intent * Track repost/unrepost * Track profile follows/unfollows * Less copy paste * Reorder
Diffstat (limited to 'src/view/com/profile/FollowButton.tsx')
-rw-r--r-- | src/view/com/profile/FollowButton.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 9cc635b66..7b090ffeb 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -13,13 +13,18 @@ export function FollowButton({ followedType = 'default', profile, labelStyle, + logContext, }: { unfollowedType?: ButtonType followedType?: ButtonType profile: Shadow<AppBskyActorDefs.ProfileViewBasic> labelStyle?: StyleProp<TextStyle> + logContext: 'ProfileCard' }) { - const [queueFollow, queueUnfollow] = useProfileFollowMutationQueue(profile) + const [queueFollow, queueUnfollow] = useProfileFollowMutationQueue( + profile, + logContext, + ) const {_} = useLingui() const onPressFollow = async () => { |