From a02348ec4e40b12a94c5a29249c94d6ba3dcc475 Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Sat, 13 Apr 2024 06:41:50 -0700 Subject: [PATCH 1/2] fix: update status and add hardcoded vote totals --- src/components/tabs/voting.tsx | 2 +- src/components/votes/ccip-021.tsx | 29 ++++++++++++----------------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/components/tabs/voting.tsx b/src/components/tabs/voting.tsx index 2990f0b..d7c447a 100644 --- a/src/components/tabs/voting.tsx +++ b/src/components/tabs/voting.tsx @@ -85,7 +85,7 @@ function Voting() { diff --git a/src/components/votes/ccip-021.tsx b/src/components/votes/ccip-021.tsx index 63ef0c0..01bf3e5 100644 --- a/src/components/votes/ccip-021.tsx +++ b/src/components/votes/ccip-021.tsx @@ -20,6 +20,7 @@ import { formatMicroAmount } from "../../store/common"; import { hasVotedAtom } from "../../store/ccip-021"; import VoteProgressBar from "./vote-progress-bar"; +/* function VoteButtons() { const { voteYes, voteNo, isRequestPending } = useCcip021VoteActions(); const hasVoted = useAtomValue(hasVotedAtom); @@ -48,6 +49,7 @@ function VoteButtons() { ); } +*/ function VoteResult() { const voterInfo = useCcip021VoteData("voterInfo"); @@ -77,6 +79,11 @@ function CCIP021() { const voterInfo = useCcip021VoteData("voterInfo"); const hasVoted = useAtomValue(hasVotedAtom); + const yesVotes = 65; + const noVotes = 0; + const yesTotal = 3952952766; + const noTotal = 0; + return ( Yes Vote Count - {voteTotals.data?.yesVotes ?? } + {yesVotes} No Vote Count - {voteTotals.data?.noVotes ?? } + {noVotes} - + Related CCIPs: CCIP-021 @@ -137,7 +141,7 @@ function CCIP021() { Voting Method: CCIP-015 @@ -163,15 +167,6 @@ function CCIP021() { the new sunset period ending at Stacks block 173,748. - {isVoteActive.data && hasVoted ? ( - <> - - Vote recorded, thank you! - Refresh to see stats once the tx confirms. - - ) : ( - - )} {voterInfo.data && } ); From 953c8a413c11527434207d067bb2a50677dac2af Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Sat, 13 Apr 2024 06:45:03 -0700 Subject: [PATCH 2/2] fix: use micro-CityCoins number for display --- src/components/votes/ccip-021.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/votes/ccip-021.tsx b/src/components/votes/ccip-021.tsx index 01bf3e5..eef2ffd 100644 --- a/src/components/votes/ccip-021.tsx +++ b/src/components/votes/ccip-021.tsx @@ -81,7 +81,7 @@ function CCIP021() { const yesVotes = 65; const noVotes = 0; - const yesTotal = 3952952766; + const yesTotal = 3952952766000000; const noTotal = 0; return (