This commit is contained in:
NotII
2025-03-18 04:03:48 +01:00
parent d18f477214
commit e0752fd7bb
5 changed files with 303 additions and 47 deletions

View File

@@ -32,6 +32,7 @@ interface Chat {
storeId: string;
lastUpdated: string;
orderId?: string;
telegramUsername?: string | null;
}
interface UnreadCounts {
@@ -228,7 +229,12 @@ export default function ChatTable() {
</AvatarFallback>
</Avatar>
<div>
<div className="font-medium">{chat.buyerId}</div>
<div className="font-medium">
{chat.telegramUsername ? `@${chat.telegramUsername}` : 'Customer'}
</div>
<div className="text-xs text-muted-foreground">
ID: {chat.buyerId}
</div>
{chat.orderId && (
<div className="text-xs text-muted-foreground">
Order #{chat.orderId}