File tree Expand file tree Collapse file tree
features/feed/components/feedItems Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { SiProducthunt } from 'react-icons/si'
2+ import { VscTriangleUp } from 'react-icons/vsc'
23import { CardItemWithActions } from 'src/components/Elements'
34import { useUserPreferences } from 'src/stores/preferences'
45import { BaseItemPropsType , ProductHuntFeedItemData } from 'src/types'
@@ -23,14 +24,17 @@ export const ProductFeedItem = (props: BaseItemPropsType<ProductHuntFeedItemData
2324 { listingMode === 'compact' && (
2425 < div className = "rowDetails" >
2526 < span className = "rowItem verticalAligned" >
26- < SiProducthunt color = "#D65736" /> Product Hunt
27+ < SiProducthunt color = "#D65736" /> Product Hunt
2728 </ span >
2829 </ div >
2930 ) }
3031 { listingMode === 'normal' && (
3132 < div className = "rowDetails" >
3233 < span className = "rowItem verticalAligned" >
33- < SiProducthunt color = "#D65736" /> Product Hunt
34+ < SiProducthunt color = "#D65736" /> Product Hunt
35+ </ span >
36+ < span className = "rowItem verticalAligned" >
37+ < VscTriangleUp className = "rowItemIcon" /> { item . votes_count || 0 } upvotes
3438 </ span >
3539 </ div >
3640 ) }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export type ArticleFeedItemData = FeedItem & {
6767export type ProductHuntFeedItemData = FeedItem & {
6868 type : 'producthunt'
6969 tagline : string
70- votes : number
70+ votes_count : number
7171 comments : number
7272}
7373
You can’t perform that action at this time.
0 commit comments