Update ChatTable.tsx
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user