Skip to content

Commit

Permalink
Set liked icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 17, 2024
1 parent 61f8e9a commit fc71253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/shared/ui/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export function Card({focus, is_me_liked}: Props) {
<div className={styles['upper-container']}>
<span className={styles['name']}>{focus.surname} {focus.name}</span>
<div className={styles['status-list']}>
{is_me_liked ? <Button onClick={onLike} pin='circle-circle' className={styles['liked']}><Icon data={CardHeart}/></Button> : null}
{focus.verify ? <Button onClick={onVerify} pin='circle-circle'><Icon data={SealCheck}/></Button> : null}
{is_me_liked ? <Button onClick={onLike} pin='circle-circle'><Icon data={CardHeart}/></Button> : null}
</div>
</div>
<div className={styles['about']}>
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/shared/ui/card/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
display: flex;
flex-direction: row;
gap: 4px;

.liked {
color: #d20fcc;
background: #d20fcc49;
}
}

.name {
Expand Down

0 comments on commit fc71253

Please sign in to comment.