completionId: cgen-798651ed7949495a9c015ce4179da3f0
cgen-798651ed7949495a9c015ce4179da3f0
This commit is contained in:
parent
2b0b97976f
commit
1e133654d5
1 changed files with 20 additions and 1 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue