Skip to content

Commit

Permalink
use client
Browse files Browse the repository at this point in the history
  • Loading branch information
kchenturtles committed Dec 23, 2023
1 parent fc98e3c commit 6ba55f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/postPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import styles from "./postPreview.module.css";
import Image from "next/image";
import Link from "next/link";
Expand All @@ -11,7 +13,7 @@ type Items = {
export default function PostPreview({ post }: { post: Items }) {
const router = useRouter();
router.push(`/blog/${post.slug}`);

return (
<div className = {styles.preview}>
<Link className = {styles.title} href={ `/blog/${post.slug}` }> {post.title}
Expand Down

0 comments on commit 6ba55f6

Please sign in to comment.