Rating Component

This commit is contained in:
Bel Curcio 2021-06-04 14:56:39 -03:00
parent 224d415775
commit 60c9fbca00

View File

@ -12,6 +12,7 @@ const Quantity: FC<RatingProps> = ({ value = 5 }) => {
<div className="flex flex-row py-6 text-accent-9">
{rangeMap(5, (i) => (
<span
key={`star_${i}`}
className={cn('inline-block ml-1 ', {
'text-accent-5': i >= Math.floor(value),
})}