mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
Rating Component
This commit is contained in:
parent
224d415775
commit
60c9fbca00
@ -12,6 +12,7 @@ const Quantity: FC<RatingProps> = ({ value = 5 }) => {
|
|||||||
<div className="flex flex-row py-6 text-accent-9">
|
<div className="flex flex-row py-6 text-accent-9">
|
||||||
{rangeMap(5, (i) => (
|
{rangeMap(5, (i) => (
|
||||||
<span
|
<span
|
||||||
|
key={`star_${i}`}
|
||||||
className={cn('inline-block ml-1 ', {
|
className={cn('inline-block ml-1 ', {
|
||||||
'text-accent-5': i >= Math.floor(value),
|
'text-accent-5': i >= Math.floor(value),
|
||||||
})}
|
})}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user