Rating on the discover page

pull/6817/head
Kamran Ahmed 3 months ago
parent 9f14e83eb4
commit be7ea71390
  1. 16
      src/components/Rating/Rating.tsx

@ -50,14 +50,14 @@ export function Rating(props: RatingProps) {
);
})}
{(props.total || 0) > 0 && (
<span className="ml-1.5 text-xs font-medium text-gray-400">
{decimalIfNeeded(Number(props.rating!))}
</span>
)}
{(props.total || 0) > 0 && (
<span className="ml-1 text-xs text-gray-400">
({Intl.NumberFormat('en-US').format(props.total!)})
</span>
<>
<span className="ml-1.5 text-xs font-medium text-gray-400">
{decimalIfNeeded(Number(props.rating!))}
</span>
<span className="ml-1 text-xs text-gray-400">
({Intl.NumberFormat('en-US').format(props.total!)})
</span>
</>
)}
</div>
);

Loading…
Cancel
Save