Skip to content

Commit fbd8264

Browse files
committed
Change to link to PostCard component
1 parent 51959a0 commit fbd8264

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/common/PostCard.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,15 @@ const PostCard = ({ post, hideUser }: PostCardProps) => {
156156
</div>
157157
)}
158158
{post.thumbnail && (
159-
<RatioImage
160-
src={post.thumbnail}
161-
alt="post-thumbnail"
162-
widthRatio={1.91}
163-
heightRatio={1}
164-
className="post-thumbnail"
165-
/>
159+
<Link to={url}>
160+
<RatioImage
161+
src={post.thumbnail}
162+
alt="post-thumbnail"
163+
widthRatio={1.91}
164+
heightRatio={1}
165+
className="post-thumbnail"
166+
/>
167+
</Link>
166168
)}
167169
<Link to={url}>
168170
<h2>{post.title}</h2>

0 commit comments

Comments
 (0)