Bring back stars.
This commit is contained in:
@@ -12,6 +12,13 @@ const BookCard = ({ book }) => (
|
|||||||
<Col>
|
<Col>
|
||||||
<Card.Body>
|
<Card.Body>
|
||||||
<Card.Title>{book.title}</Card.Title>
|
<Card.Title>{book.title}</Card.Title>
|
||||||
|
<StarRatings
|
||||||
|
rating={ parseFloat(book.rating) }
|
||||||
|
numberOfStars={5}
|
||||||
|
starDimension="18px"
|
||||||
|
starSpacing="1px"
|
||||||
|
starRatedColor="#fa604a"
|
||||||
|
/>
|
||||||
<Card.Subtitle className="mb-2 text-muted">{book.author}</Card.Subtitle>
|
<Card.Subtitle className="mb-2 text-muted">{book.author}</Card.Subtitle>
|
||||||
</Card.Body>
|
</Card.Body>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
Reference in New Issue
Block a user