modified bookcard.js
This commit is contained in:
@@ -67,7 +67,7 @@ const BookCard = ({ book }) => {
|
|||||||
{!show && truncateContent(book.description)}
|
{!show && truncateContent(book.description)}
|
||||||
{show && showFullText(book.description)}
|
{show && showFullText(book.description)}
|
||||||
</p>
|
</p>
|
||||||
{!show && (
|
{!show && book.description.length>350 &&(
|
||||||
<button className="btn btn-sm btn-primary " onClick={() => toggleShow(true)}>
|
<button className="btn btn-sm btn-primary " onClick={() => toggleShow(true)}>
|
||||||
Show More
|
Show More
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user