@@ -4,7 +4,7 @@ import { VoteChoiceWithMeta } from "@/lib/types";
44import { cn , ellipsisMiddle } from "@/lib/utils" ;
55import BN from "bn.js" ;
66import React , { FC } from "react" ;
7- import { FaCircle , FaCircleCheck } from "react-icons/fa6" ;
7+ import { FaCircleCheck } from "react-icons/fa6" ;
88import { Loader2 } from "lucide-react" ;
99import { PublicKey } from "@solana/web3.js" ;
1010import { Pill } from "./Pill" ;
@@ -46,9 +46,28 @@ export const VoteOption: FC<{
4646 < div className = "flex flex-row gap-2 items-center" >
4747 { voting ? (
4848 < Loader2 className = "size-5 animate-spin" />
49+ ) : ! didVote ? (
50+ < div
51+ className = { cn ( "size-5 rounded-full border-2" , {
52+ "border-vote-0" : option . index === 0 ,
53+ "border-vote-1" : option . index === 1 ,
54+ "border-vote-2" : option . index === 2 ,
55+ "border-vote-3" : option . index === 3 ,
56+ "border-vote-4" : option . index === 4 ,
57+ "border-vote-5" : option . index === 5 ,
58+ "border-vote-6" : option . index === 6 ,
59+ "border-vote-7" : option . index === 7 ,
60+ "border-vote-8" : option . index === 8 ,
61+ "border-vote-9" : option . index === 9 ,
62+ "border-vote-10" : option . index === 10 ,
63+ "border-vote-11" : option . index === 11 ,
64+ "border-vote-12" : option . index === 12 ,
65+ "border-vote-13" : option . index === 13 ,
66+ } ) }
67+ />
4968 ) : (
50- < FaCircle
51- className = { cn ( "size-5 border rounded-full " , {
69+ < FaCircleCheck
70+ className = { cn ( "size-5" , {
5271 "fill-vote-0" : option . index === 0 ,
5372 "fill-vote-1" : option . index === 1 ,
5473 "fill-vote-2" : option . index === 2 ,
@@ -67,7 +86,6 @@ export const VoteOption: FC<{
6786 />
6887 ) }
6988 < p className = "font-normal flex-grow" > { option . name } </ p >
70- { didVote && < FaCircleCheck className = "size-5 fill-success-foreground" /> }
7189 </ div >
7290
7391 { voters . length > 0 && (
0 commit comments