Skip to content

Commit

Permalink
Invalid read more button removed. Author: Syed Ayaan Ali, Committer: …
Browse files Browse the repository at this point in the history
…Syed Ayaan Ali; [email protected]
  • Loading branch information
SyedAyaanAli6786 committed Aug 14, 2024
1 parent f54ed12 commit 5f8ee23
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/components/AdventuresVol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ const AdventuresVol = ({ title, description, to, image }) => {
<p className="handbook__card--para">
{description}
</p>
<div className="handbook__card--lm__container">
<a href={to} className="handbook__card--lm">Read More <HiOutlineChevronRight /></a>
</div>
{to && (
<div className="handbook__card--lm__container">
<a href={to} className="handbook__card--lm">
Read More <HiOutlineChevronRight />
</a>
</div>
)}
</div>
</a>
</AdventuresVolWrapper>
Expand Down
10 changes: 7 additions & 3 deletions src/components/HandbookCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ const HandbookCard = ({ title, description, to }) => {
<p className="handbook__card--para">
{description}
</p>
<div className="handbook__card--lm__container">
<Link to={to} class="handbook__card--lm">Read More <HiOutlineChevronRight /></Link>
</div>
{to && (
<div className="handbook__card--lm__container">
<a href={to} className="handbook__card--lm">
Read More <HiOutlineChevronRight />
</a>
</div>
)}
</div>
</Link>
</HandbookCardWrapper>
Expand Down

0 comments on commit 5f8ee23

Please sign in to comment.