diff --git a/client/pages/Feed.tsx b/client/pages/Feed.tsx index 32cc6b64..3c17337b 100644 --- a/client/pages/Feed.tsx +++ b/client/pages/Feed.tsx @@ -499,7 +499,11 @@ export default function Feed() { style={{ animationDelay: `${index * 50}ms` }} className="animate-fade-in" > - + handleLike(post.id)} + onComment={() => handleCommentClick(post.id)} + /> )) )} @@ -508,6 +512,21 @@ export default function Feed() { + + {/* Comments Modal */} + {selectedPostForComments && ( + { + if (!open) { + setSelectedPostForComments(null); + } + }} + postId={selectedPostForComments} + currentUserId={user?.id} + onCommentAdded={handleCommentAdded} + /> + )} ); }