mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Change ReviewRating containing element into a span
This way the component can also be used for inline purposes.
This commit is contained in:
parent
828b7223f3
commit
b3e123a544
2 changed files with 3 additions and 2 deletions
|
|
@ -150,6 +150,7 @@
|
|||
}
|
||||
|
||||
.reviewStars {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const ReviewRating = props => {
|
|||
|
||||
const stars = propTypes.REVIEW_RATINGS;
|
||||
return (
|
||||
<div className={classes}>
|
||||
<span className={classes}>
|
||||
{stars.map(star => (
|
||||
<IconReviewStar
|
||||
key={`star-${star}`}
|
||||
|
|
@ -18,7 +18,7 @@ const ReviewRating = props => {
|
|||
isFilled={star <= rating}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</span>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue