Update ChatTable.tsx

This commit is contained in:
NotII
2025-03-08 05:44:45 +00:00
parent 02d605dd59
commit c3018c4fce

View File

@@ -228,7 +228,7 @@ export default function ChatTable() {
</AvatarFallback> </AvatarFallback>
</Avatar> </Avatar>
<div> <div>
<div className="font-medium">Customer {chat.buyerId.slice(0, 4)}</div> <div className="font-medium">{chat.buyerId}</div>
{chat.orderId && ( {chat.orderId && (
<div className="text-xs text-muted-foreground"> <div className="text-xs text-muted-foreground">
Order #{chat.orderId} Order #{chat.orderId}
@@ -261,16 +261,6 @@ export default function ChatTable() {
> >
<Eye className="h-4 w-4" /> <Eye className="h-4 w-4" />
</Button> </Button>
<Button
variant="ghost"
size="icon"
onClick={(e) => {
e.stopPropagation();
window.open(`/dashboard/chats/${chat._id}`, '_blank');
}}
>
<MessageCircle className="h-4 w-4" />
</Button>
</div> </div>
</TableCell> </TableCell>
</TableRow> </TableRow>