Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia committed Dec 28, 2024
1 parent 8bb987b commit 8a53088
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/layout/pot/components/PotVotingLeaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export type PotVotingLeaderboardProps = ByPotId & {};
export const PotVotingLeaderboard: React.FC<PotVotingLeaderboardProps> = ({ potId }) => {
const votingRoundResults = useVotingRoundResults({ potId });

console.log(votingRoundResults?.candidates);

return votingRoundResults === undefined ? null : (
<div className="md:max-w-126.5 flex w-full flex-col gap-3 rounded-3xl bg-neutral-50 p-3">
{votingRoundResults.leadingPositionAccountIds.map((accountId, index) => {
Expand All @@ -23,7 +25,7 @@ export const PotVotingLeaderboard: React.FC<PotVotingLeaderboardProps> = ({ potI
className={cn(
"elevation-low inline-flex h-16 items-center justify-start gap-2 md:gap-6",
"bg-background overflow-hidden rounded-2xl p-3",
"hidden", // TODO: Temporarily disabled
//"hidden", // TODO: Temporarily disabled
)}
>
<div
Expand All @@ -44,7 +46,7 @@ export const PotVotingLeaderboard: React.FC<PotVotingLeaderboardProps> = ({ potI
}
>
<AccountHandle
maxLength={26}
maxLength={22}
className="font-600 text-neutral-950"
{...{ accountId }}
/>
Expand All @@ -63,9 +65,9 @@ export const PotVotingLeaderboard: React.FC<PotVotingLeaderboardProps> = ({ potI
>
<LabeledIcon
positioning="icon-text"
caption={estimatedPayoutAmount}
caption={`~ ${estimatedPayoutAmount.toFixed(2)}`}
classNames={{
caption: "font-600 text-sm gap-1.5",
caption: "font-600 text-sm gap-1.5 text-nowrap",
}}
>
<TokenIcon tokenId={NATIVE_TOKEN_ID} className="color-peach-600" />
Expand Down

0 comments on commit 8a53088

Please sign in to comment.