Skip to content

Commit 34224aa

Browse files
committed
refactor: simplify ArticleItem component by removing PostFlair rendering
1 parent eafcfef commit 34224aa

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/features/cards/components/redditCard/ArticleItem.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,7 @@ const ArticleItem = ({ item, analyticsTag }: BaseItemPropsType<Article>) => {
6060
</div>
6161
)}
6262

63-
<div className="subTitle">
64-
{item.flair_text && (
65-
<PostFlair
66-
text={item.flair_text}
67-
bgColor={item.flair_background_color}
68-
textColor={item.flair_text_color}
69-
/>
70-
)}
71-
{item.title}
72-
</div>
63+
<div className="subTitle">{item.title}</div>
7364
</CardLink>
7465

7566
<div className="rowDetails">

0 commit comments

Comments
 (0)