Skip to content

Commit

Permalink
color score
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Nov 1, 2023
1 parent 5b77cfe commit 53ba714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Display.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const SanitizedLink = ({ children, href, ...props }) => {
export const UpvoteDownvoteChip = ({ counts, ...props }) => {
return (
<SquareChip
color={"neutral"}
color={counts.score < 0 ? "danger" : counts.score == 0 ? "neutral" : "success"}
tooltip={
<>
<Typography color="success" sx={{ pr: 1 }}>
Expand Down

0 comments on commit 53ba714

Please sign in to comment.