Skip to content

Commit

Permalink
Merge pull request #3413 from cardano-foundation/fix/ui-vote-drep-poo…
Browse files Browse the repository at this point in the history
…ldetails

fix: change color vote mapping design
  • Loading branch information
Sotatek-TaiTruong committed May 8, 2024
2 parents ab59f02 + a99d642 commit bfd1e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GovernanceVotes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ const VoteRate = ({ data }: { data?: GovernanceVoteChart | VotingChart | null })
)
: 0
}
color={theme.palette.error[700]}
color={theme.isDark ? theme.palette.error[100] : theme.palette.error[700]}
icon={<VotesNoIcon />}
label={t("common.no")}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/DrepDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ const VoteRate = ({ data, loading }: { data: DrepOverviewChart | null; loading:
)
: 0
}
color={theme.palette.error[700]}
color={theme.isDark ? theme.palette.error[100] : theme.palette.error[700]}
numberVote={data?.numberOfNoVotes || 0}
icon={<VotesNoIcon />}
label={t("common.no")}
Expand Down

0 comments on commit bfd1e12

Please sign in to comment.