Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: swap like button positions #277

Merged
merged 4 commits into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading