Skip to content

Commit

Permalink
omit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
kchenturtles committed Dec 23, 2023
1 parent 0e0aea2 commit 15766f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/postPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export default function PostPreview({ post }: { post: Items }) {

return (
<div className = {styles.preview}>
<Link className = { styles.title } href = { `/blog/${post["slug"]}`} onClick = {() => {
router.push(`/blog/${post["slug"]}`);
}}> {post.title}
<Link className = { styles.title } href = { `/blog/${post["slug"]}`}> {post.title}
</Link>
<div> {post.date} </div>
</div>
Expand Down

0 comments on commit 15766f0

Please sign in to comment.