Skip to content

Commit

Permalink
fix: cached proposal list item status styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Dec 26, 2023
1 parent 242a285 commit 3a6eb34
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ export function ProposalListItemFinalStatus({
const color =
status === ProposalState.Defeated
? '$mainAgainst'
: status === ProposalState.Executed
: status === ProposalState.Executed || status === ProposalState.Succeed
? '$mainFor'
: '$disabled';

const icon = status === ProposalState.Executed ? SuccessIcon : ErrorIcon;
const icon =
status === ProposalState.Executed || status === ProposalState.Succeed
? SuccessIcon
: ErrorIcon;

return (
<Box
Expand Down

1 comment on commit 3a6eb34

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.