We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37b1d3 commit 13fa875Copy full SHA for 13fa875
1 file changed
src/features/cards/components/redditCard/ArticleItem.tsx
@@ -10,22 +10,6 @@ import { useUserPreferences } from 'src/stores/preferences'
10
import { Article, BaseItemPropsType } from 'src/types'
11
import { format } from 'timeago.js'
12
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
29
const ArticleItem = ({ item, analyticsTag }: BaseItemPropsType<Article>) => {
30
const { listingMode } = useUserPreferences()
31
0 commit comments