Skip to content

Commit

Permalink
fix: swap like button positions (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguernse authored Jun 30, 2024
1 parent e2901b0 commit d1b12f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/features/voting/ProposalLikeButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ export default function ProposalLikeButtons({
<Button
size="sm"
variant="outline"
onClick={() => handleLikeVote('up')}
onClick={() => handleLikeVote('down')}
disabled={disabled}
>
<ThumbsUpIcon className="w-5 h-5 text-green-500 mr-1" />
<span className="text-green-500 font-medium">{numberUpvotes}</span>
<ThumbsDownIcon className="w-5 h-5 text-red-500 mr-1" />
<span className="text-red-500 font-medium">{numberDownvotes}</span>
</Button>

<Button
size="sm"
variant="outline"
onClick={() => handleLikeVote('down')}
onClick={() => handleLikeVote('up')}
disabled={disabled}
>
<ThumbsDownIcon className="w-5 h-5 text-red-500 mr-1" />
<span className="text-red-500 font-medium">{numberDownvotes}</span>
<ThumbsUpIcon className="w-5 h-5 text-green-500 mr-1" />
<span className="text-green-500 font-medium">{numberUpvotes}</span>
</Button>
</div>
);
Expand Down

0 comments on commit d1b12f2

Please sign in to comment.