Wire like/comment button handlers correctly
cgen-7bff8e2fc11a48978ddb36edae8426c2
This commit is contained in:
parent
07cab99dfb
commit
33396c9aef
1 changed files with 2 additions and 2 deletions
|
|
@ -115,14 +115,14 @@ export function FeedItemCard({
|
|||
<div className="rounded-2xl border border-border/40 bg-background/80 p-4">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3 text-sm text-muted-foreground">
|
||||
<div className="flex items-center gap-3">
|
||||
<Button variant="ghost" size="sm" className="gap-2 pl-2 pr-3" onClick={() => onShare(`${item.id}:like`)}>
|
||||
<Button variant="ghost" size="sm" className="gap-2 pl-2 pr-3" onClick={() => onLike(item.id)}>
|
||||
<Heart className="h-4 w-4 text-aethex-400" />
|
||||
<span className="font-medium text-foreground">
|
||||
{item.likes.toLocaleString()}
|
||||
</span>
|
||||
<span className="hidden sm:inline">Like</span>
|
||||
</Button>
|
||||
<Button variant="ghost" size="sm" className="gap-2 pl-2 pr-3" onClick={() => onShare(`${item.id}:comment`)}>
|
||||
<Button variant="ghost" size="sm" className="gap-2 pl-2 pr-3" onClick={() => onComment(item.id)}>
|
||||
<MessageCircle className="h-4 w-4 text-aethex-400" />
|
||||
<span className="font-medium text-foreground">
|
||||
{item.comments.toLocaleString()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue