diff --git a/frontend/src/components/PostCard.tsx b/frontend/src/components/PostCard.tsx index b6111b49..9701c63e 100644 --- a/frontend/src/components/PostCard.tsx +++ b/frontend/src/components/PostCard.tsx @@ -178,81 +178,73 @@ const PostCard = ({ post, onDelete, currentUser }: Props) => { }; return ( - -
-
-

{post.title}

- {isFavorite ? ( - - ) : ( - - )} -

- {post.description.length > 100 - ? `${post.description.slice(0, 100)}...` - : post.description} -

-

By : - - - {' '} @{post.author.username}{' '} - - -

- -
- {post.tags.map((tag, index) => ( - - {tag} - - ))} -
-
- {/* */} - {currentUser && currentUser.id === post.author.id && ( -
- - -
- )} -
+ ))} +
+
+ + {currentUser && currentUser.id === post.author.id && ( +
+ + +
+ )}
);