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">
<VoteSelector ref={selectorRef} value={vote} onChange={onChange} />
</div>
) : vote ? (
) : (
<AnimatePresence initial={false}>
<PopInOut
key={vote}
@ -134,7 +134,7 @@ const PollOption: React.VoidFunctionComponent<PollOptionProps> = ({
<VoteIcon type={vote} />
</PopInOut>
</AnimatePresence>
) : null}
)}
</CollapsibleContainer>
</div>
);

View file

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