Add search event analytics (#9949)

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
DS Boyce
2026-03-03 12:49:38 -08:00
committed by GitHub
parent 37a82761f5
commit 7dc3b4fa8e
10 changed files with 291 additions and 120 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
import {View} from 'react-native'
import {type GestureResponderEvent, View} from 'react-native'
import {useModerationOpts} from '#/state/preferences/moderation-opts'
import {atoms as a, useTheme} from '#/alf'
@@ -11,12 +11,14 @@ export function ProfileCardWithFollowBtn({
logContext = 'ProfileCard',
position,
contextProfileDid,
onPress,
}: {
profile: bsky.profile.AnyProfileView
noBorder?: boolean
logContext?: 'ProfileCard' | 'StarterPackProfilesList'
position?: number
contextProfileDid?: string
onPress?: (e: GestureResponderEvent) => void
}) {
const t = useTheme()
const moderationOpts = useModerationOpts()
@@ -36,6 +38,7 @@ export function ProfileCardWithFollowBtn({
logContext={logContext}
position={position}
contextProfileDid={contextProfileDid}
onPress={onPress}
/>
</View>
)