Skip to content

Commit

Permalink
Merge pull request #128 from errhythm/mrtb/vote-buttons
Browse files Browse the repository at this point in the history
Correct ThumbsDown component syntax error issue.
  • Loading branch information
omranjamal authored Oct 18, 2024
2 parents 23a5713 + 024c746 commit 82818e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/jonogon-web-next/src/app/petitions/[id]/_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export default function Petition() {
</>
) : (
<>
<ThumbsUp size={20} fill={userVote === 1 ? '#000' : userVote === -1 ? '#fff' : '#28c45c' } />{' '}
<ThumbsUp size={20} fill={userVote === 1 ? '#000' : userVote === 0 ? '#fff' : '#28c45c' } />{' '}
<p className="ml-2">{upvoteCount}</p>
</>
)}
Expand All @@ -454,7 +454,7 @@ export default function Petition() {
className="flex-1 w-full"
size={'lg'}
onClick={clickThumbsDown}>
<ThumbsDown size={20} fill={ userVote === 0 ? '#e03c3c' : '#fff' />{' '}
<ThumbsDown size={20} fill={userVote === -1 ? '#000' : userVote === 0 ? '#e03c3c' : '#fff'} /> {' '}
<p className="ml-2">{downvoteCount}</p>
</Button>
</div>
Expand Down

0 comments on commit 82818e3

Please sign in to comment.