Skip to content

Commit

Permalink
Add press events to interstitials
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Jan 16, 2025
1 parent 9008870 commit fe3de35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/FeedInterstitials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,20 @@ export function ProfileGrid({
))
) : error || !profiles.length ? null : (
<>
{profiles.slice(0, maxLength).map(profile => (
{profiles.slice(0, maxLength).map((profile, index) => (
<ProfileCard.Link
key={profile.did}
profile={profile}
onPress={() => {
logEvent('feed:interstitial:profileCard:press', {})
logEvent('suggestedUser:press', {
logContext:
viewContext === 'feed'
? 'InterstitialDiscover'
: 'InterstitialProfile',
recId: 123,
position: index,
})
}}
style={[
a.flex_1,
Expand Down

0 comments on commit fe3de35

Please sign in to comment.