Skip to content

Commit 952ae47

Browse files
committed
feat: Remove the bookmark button and its associated styles from the ArticleCard component.
1 parent eb2b094 commit 952ae47

File tree

2 files changed

+18
-31
lines changed

2 files changed

+18
-31
lines changed

src/features/home/components/article-card/ArticleCard.module.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,3 @@
8080
position: absolute;
8181
inset: 0;
8282
}
83-
84-
.bookmarkButton {
85-
color: alpha(var(--bw-color-text-quaternary), 30);
86-
}

src/features/home/components/article-card/ArticleCard.tsx

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,24 @@ export const ArticleCard: React.FC<ArticleCardProps> = (props) => {
6262
{description}
6363
</Text>
6464
</div>
65-
<Flex justify="space-between" align="center" className={styles.bottomBar}>
66-
<Flex
67-
gap="var(--bw-space-2)"
68-
align="center"
69-
className={styles.authorContainer}
70-
>
71-
<img
72-
className={styles.authorAvatar}
73-
src={author.avatarURL}
74-
alt=""
75-
width={24}
76-
height={24}
77-
/>
78-
<Text elementType="p" className={styles.authorName}>
79-
<a href={authorHref} className={styles.authorNameLink}>
80-
<span className={styles.spanner} />
81-
{author.name}
82-
</a>
83-
</Text>
84-
</Flex>
85-
<IconButton
86-
className={styles.bookmarkButton}
87-
variant="tertiary"
88-
aria-label={_(msg`Bookmark`)}
89-
>
90-
<LuBookmark />
91-
</IconButton>
65+
<Flex
66+
gap="var(--bw-space-2)"
67+
align="center"
68+
className={styles.authorContainer}
69+
>
70+
<img
71+
className={styles.authorAvatar}
72+
src={author.avatarURL}
73+
alt=""
74+
width={24}
75+
height={24}
76+
/>
77+
<Text elementType="p" className={styles.authorName}>
78+
<a href={authorHref} className={styles.authorNameLink}>
79+
<span className={styles.spanner} />
80+
{author.name}
81+
</a>
82+
</Text>
9283
</Flex>
9384
</article>
9485
);

0 commit comments

Comments
 (0)