11import { BiCommentDetail } from 'react-icons/bi'
22import { GoDotFill } from 'react-icons/go'
33import { MdAccessTime } from 'react-icons/md'
4- import { CardItemWithActions , CardLink , ClickableItem } from 'src/components/Elements'
4+ import { CardItemWithActions , CardLink } from 'src/components/Elements'
55import { Attributes } from 'src/lib/analytics'
66import { useUserPreferences } from 'src/stores/preferences'
77import { Article , BaseItemPropsType } from 'src/types'
@@ -36,6 +36,13 @@ const ArticleItem = (props: BaseItemPropsType<Article>) => {
3636 < span className = "subTitle" > { item . title } </ span >
3737 </ CardLink >
3838 </ p >
39+ { listingMode === 'compact' && (
40+ < div className = "rowDetails" >
41+ < span className = "rowItem capitalize" >
42+ < GoDotFill className = "rowItemIcon" /> { item . source }
43+ </ span >
44+ </ div >
45+ ) }
3946 { listingMode === 'normal' && (
4047 < div className = "rowDetails" >
4148 < span className = "rowItem capitalize" >
@@ -44,18 +51,10 @@ const ArticleItem = (props: BaseItemPropsType<Article>) => {
4451 < span className = "rowItem" title = { new Date ( item . published_at ) . toUTCString ( ) } >
4552 < MdAccessTime className = "rowItemIcon" /> { format ( new Date ( item . published_at ) ) }
4653 </ span >
47- < ClickableItem
48- link = { `https://news.ycombinator.com/item?id=${ item . id } ` }
49- className = "rowItem rowItemClickable"
50- analyticsAttributes = { {
51- [ Attributes . POINTS ] : item . reactions ,
52- [ Attributes . TRIGERED_FROM ] : 'card' ,
53- [ Attributes . TITLE ] : `${ item . title } comments` ,
54- [ Attributes . LINK ] : `https://news.ycombinator.com/item?id=${ item . id } ` ,
55- [ Attributes . SOURCE ] : analyticsTag ,
56- } } >
57- < BiCommentDetail className = "rowItemIcon" /> { item . comments } comments
58- </ ClickableItem >
54+ < span className = "rowItem" >
55+ < BiCommentDetail className = { 'rowTitleIcon' } />
56+ { item . comments } comments
57+ </ span >
5958 </ div >
6059 ) }
6160 </ >
0 commit comments