Revert "Revert "Include goodreads image.""

This reverts commit f4446aff07.
This commit is contained in:
Elysia Ong
2020-10-12 16:43:52 +08:00
committed by Vishnu Ks
parent 549b560748
commit 695d92f465
2 changed files with 37 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import StarRatings from "react-star-ratings"
import { Card, Row, Col } from "react-bootstrap"
import AmazonURL from "../components/amazonurl"
import GoodReadsImage from "../components/goodreadsimage"
const truncateContent = (content) => {
if (!content) {
@@ -37,6 +38,10 @@ const BookCard = ({ book }) => (
{book.author} <b>{book.year ? book.year: null}</b>
<br />
{book.amazon_url ? <AmazonURL book={book} />: null}
<br />
<a href={book.url} >
<GoodReadsImage />
</a>
</Card.Subtitle>
<p>
{truncateContent(book.description)}