@@ -4,7 +4,7 @@ import { BsArrowReturnRight } from 'react-icons/bs'
44import { GoDotFill } from 'react-icons/go'
55import { MdAccessTime } from 'react-icons/md'
66import { VscTriangleUp } from 'react-icons/vsc'
7- import { CardItemWithActions , CardLink } from 'src/components/Elements'
7+ import { CardItemWithActions , CardLink , ClickableItem } from 'src/components/Elements'
88import { Attributes } from 'src/lib/analytics'
99import { useUserPreferences } from 'src/stores/preferences'
1010import { Article , BaseItemPropsType } from 'src/types'
@@ -56,9 +56,18 @@ const ArticleItem = ({ item, analyticsTag }: BaseItemPropsType<Article>) => {
5656 < span className = "rowItem" >
5757 < MdAccessTime className = "rowItemIcon" /> { format ( new Date ( item . published_at ) ) }
5858 </ span >
59- < span className = "rowItem" >
59+ < ClickableItem
60+ link = { item . canonical_url || item . url }
61+ className = "rowItem rowItemClickable"
62+ analyticsAttributes = { {
63+ [ Attributes . POINTS ] : item . points_count ,
64+ [ Attributes . TRIGERED_FROM ] : 'card' ,
65+ [ Attributes . TITLE ] : `${ item . title } comments` ,
66+ [ Attributes . LINK ] : item . canonical_url ,
67+ [ Attributes . SOURCE ] : analyticsTag ,
68+ } } >
6069 < BiCommentDetail className = "rowItemIcon" /> { item . comments_count } comments
61- </ span >
70+ </ ClickableItem >
6271 { subReddit && (
6372 < span className = "rowItem" >
6473 < BsArrowReturnRight className = "rowItemIcon" /> { `r/${ subReddit } ` }
0 commit comments