diff options
author | Eric Bailey <git@esb.lol> | 2024-12-27 16:21:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-27 14:21:17 -0800 |
commit | c6d26a0a9c6606cccaee38adb535be257f19809d (patch) | |
tree | ec5669983ca34f5ce94ed6578dd405643cc6420a /src/view/shell/desktop/SidebarTrendingTopics.tsx | |
parent | 8b7a33181534b4bce1a74ba81e20db8195f1ae40 (diff) | |
download | voidsky-c6d26a0a9c6606cccaee38adb535be257f19809d.tar.zst |
Some metrics (#7294)
* Add trending metrics * Progress guide events * Fix naming, improve existing events
Diffstat (limited to 'src/view/shell/desktop/SidebarTrendingTopics.tsx')
-rw-r--r-- | src/view/shell/desktop/SidebarTrendingTopics.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/view/shell/desktop/SidebarTrendingTopics.tsx b/src/view/shell/desktop/SidebarTrendingTopics.tsx index ef8227d1c..a7b9a8391 100644 --- a/src/view/shell/desktop/SidebarTrendingTopics.tsx +++ b/src/view/shell/desktop/SidebarTrendingTopics.tsx @@ -79,7 +79,12 @@ function Inner() { ) : !trending?.topics ? null : ( <> {trending.topics.slice(0, TRENDING_LIMIT).map(topic => ( - <TrendingTopicLink key={topic.link} topic={topic}> + <TrendingTopicLink + key={topic.link} + topic={topic} + onPress={() => { + logEvent('trendingTopic:click', {context: 'sidebar'}) + }}> {({hovered}) => ( <TrendingTopic size="small" |