Skip to content

Commit

Permalink
fix: active all outcomes in active status
Browse files Browse the repository at this point in the history
  • Loading branch information
0xExp-po committed Nov 19, 2024
1 parent 545f842 commit c0780ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapp/src/components/page/proposal/ProposalDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const OutcomeDetail: React.FC<{
<div
className={`text-base sm:text-xl md:text-2xl text-white md:py-0.5 px-1 md:px-2 rounded md:rounded-md
${type === "approved" ? "bg-approved" : type === "rejected" ? "bg-conflict" : type === "cancelled" ? "bg-abstain" : type === "voted" ? "bg-voted" : "bg-gray-300"}
${type === proposalStatus || (type === "approved" && proposalStatus === "voted") ? "shadow-vote" : `${type !== "active" && !(type === "approved" && proposalStatus === "voted") && "bg-zinc-700"}`}`}
${type === proposalStatus || (type === "approved" && proposalStatus === "voted") ? "shadow-vote" : `${proposalStatus !== "active" && !(type === "approved" && proposalStatus === "voted") && "bg-zinc-700"}`}`}
>
{capitalizeFirstLetter(type)}
</div>
Expand Down

0 comments on commit c0780ba

Please sign in to comment.