completionId: cgen-798651ed7949495a9c015ce4179da3f0

cgen-798651ed7949495a9c015ce4179da3f0
This commit is contained in:
Builder.io 2025-11-13 06:32:24 +00:00
parent 2b0b97976f
commit 1e133654d5

View file

@ -499,7 +499,11 @@ export default function Feed() {
style={{ animationDelay: `${index * 50}ms` }}
className="animate-fade-in"
>
<ArmPostCard post={post} />
<ArmPostCard
post={post}
onLike={() => handleLike(post.id)}
onComment={() => handleCommentClick(post.id)}
/>
</div>
))
)}
@ -508,6 +512,21 @@ export default function Feed() {
</div>
</div>
</div>
{/* Comments Modal */}
{selectedPostForComments && (
<CommentsModal
open={!!selectedPostForComments}
onOpenChange={(open) => {
if (!open) {
setSelectedPostForComments(null);
}
}}
postId={selectedPostForComments}
currentUserId={user?.id}
onCommentAdded={handleCommentAdded}
/>
)}
</Layout>
);
}