Skip to content

Commit

Permalink
routing to article
Browse files Browse the repository at this point in the history
  • Loading branch information
am5815 committed May 8, 2024
1 parent 051eae2 commit dd94738
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 dd94738

Please sign in to comment.