Skip to content

Commit

Permalink
Merge pull request #31 from hicsail/bug/routing-to-article
Browse files Browse the repository at this point in the history
routing to article
  • Loading branch information
am5815 authored May 8, 2024
2 parents 051eae2 + 9cc5713 commit df14ee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/IonicCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export default function IonicCard({
borderRadius: 20,
padding: 20,
}}
button
onClick={() => {
window.location.href = `/post/${id}`;
}}
>
{/* <img alt="Silhouette of mountains" height={200} src="https://ionicframework.com/docs/img/demos/card-media.png" /> */}
<IonCardHeader>
Expand Down

0 comments on commit df14ee0

Please sign in to comment.