Skip to content

Commit

Permalink
chore(vote): improve vote button color
Browse files Browse the repository at this point in the history
- green for thumbs up
- red for thumbs down
  • Loading branch information
bivanalhar authored and cysjonathan committed Aug 26, 2024
1 parent c0d46ba commit 993a0c4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ const VotePostButton: FC<Props> = ({ post }) => {
return (
<div className="flex items-center">
<IconButton
color="info"
color="success"
onClick={(): void => handleVotePost(1)}
title="Upvote"
>
<ThumbUpOffAlt />
</IconButton>
<div className="vote-tally font-bold">{post.voteTally}</div>
<IconButton
color="info"
color="error"
onClick={(): void => handleVotePost(-1)}
title="Downvote"
>
Expand All @@ -68,7 +68,7 @@ const VotePostButton: FC<Props> = ({ post }) => {
return (
<div className="flex items-center">
<IconButton
color="info"
color="success"
onClick={(): void => handleVotePost(post.userVoteFlag ? 0 : 1)}
title="Upvote"
>
Expand All @@ -77,7 +77,7 @@ const VotePostButton: FC<Props> = ({ post }) => {
<div className="vote-tally font-bold">{post.voteTally}</div>

<IconButton
color="info"
color="error"
onClick={(): void => handleVotePost(!post.userVoteFlag ? 0 : -1)}
title="Downvote"
>
Expand Down

0 comments on commit 993a0c4

Please sign in to comment.