Skip to content

Commit 13fa875

Browse files
committed
fix: remove unused PostFlair component and its associated types from ArticleItem
1 parent a37b1d3 commit 13fa875

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ import { useUserPreferences } from 'src/stores/preferences'
1010
import { Article, BaseItemPropsType } from 'src/types'
1111
import { format } from 'timeago.js'
1212

13-
type PostFlairPropsType = {
14-
text: string
15-
textColor?: string
16-
bgColor?: string
17-
}
18-
19-
const PostFlair = ({ text, bgColor, textColor }: PostFlairPropsType) => {
20-
const color = textColor === 'light' ? '#fff' : '#000'
21-
const backgroundColor = bgColor ? bgColor : '#dadada'
22-
return (
23-
<div style={{ backgroundColor, color }} className="flair">
24-
<span>{text}</span>
25-
</div>
26-
)
27-
}
28-
2913
const ArticleItem = ({ item, analyticsTag }: BaseItemPropsType<Article>) => {
3014
const { listingMode } = useUserPreferences()
3115

0 commit comments

Comments
 (0)