Fix missing vote icon

This commit is contained in:
Luke Vella 2022-05-17 19:33:09 +01:00
parent 9dd7c5a948
commit 3d7e7e8a95
2 changed files with 3 additions and 3 deletions

View file

@ -125,7 +125,7 @@ const PollOption: React.VoidFunctionComponent<PollOptionProps> = ({
<div className="flex h-full w-14 items-center justify-center"> <div className="flex h-full w-14 items-center justify-center">
<VoteSelector ref={selectorRef} value={vote} onChange={onChange} /> <VoteSelector ref={selectorRef} value={vote} onChange={onChange} />
</div> </div>
) : vote ? ( ) : (
<AnimatePresence initial={false}> <AnimatePresence initial={false}>
<PopInOut <PopInOut
key={vote} key={vote}
@ -134,7 +134,7 @@ const PollOption: React.VoidFunctionComponent<PollOptionProps> = ({
<VoteIcon type={vote} /> <VoteIcon type={vote} />
</PopInOut> </PopInOut>
</AnimatePresence> </AnimatePresence>
) : null} )}
</CollapsibleContainer> </CollapsibleContainer>
</div> </div>
); );

View file

@ -20,7 +20,7 @@ const VoteIcon: React.VoidFunctionComponent<{
); );
default: default:
return <span className="inline-block font-bold text-slate-300">?</span>; return <span className="inline-block font-bold text-slate-400">?</span>;
} }
}; };