modified bookcard.js

This commit is contained in:
Hanee-Solanki
2022-10-14 10:57:48 -06:00
committed by Vishnu Ks
parent 9a55f9ab1e
commit 73efa4443c

View File

@@ -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>