mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Include precision in rating star classname (#3719)
This commit is contained in:
@@ -240,8 +240,10 @@ export const RatingStars: React.FC<IRatingStarsProps> = (
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const precisionClassName = `rating-stars-precision-${props.precision}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="rating-stars">
|
<div className={`rating-stars ${precisionClassName}`}>
|
||||||
{Array.from(Array(max)).map((value, index) =>
|
{Array.from(Array(max)).map((value, index) =>
|
||||||
renderRatingButton(index + 1)
|
renderRatingButton(index + 1)
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user