chore: clean up placeholder comments and over-engineering

This commit is contained in:
zetaloop
2026-02-20 20:20:22 +08:00
parent e12500fafd
commit a4e05cf482
4 changed files with 25 additions and 30 deletions
+10 -8
View File
@@ -104,14 +104,16 @@ export default function OrderListPage() {
{order.status === "in_progress" &&
(() => {
const session = mockChatSessions.find((s) => s.orderId === order.id)
return session ? (
<Button variant="outline" size="sm" asChild>
<Link href={`/chat/${session.id}`}>
<MessageSquare className="mr-1 h-3.5 w-3.5" />
</Link>
</Button>
) : null
return (
session && (
<Button variant="outline" size="sm" asChild>
<Link href={`/chat/${session.id}`}>
<MessageSquare className="mr-1 h-3.5 w-3.5" />
</Link>
</Button>
)
)
})()}
{order.status === "completed" && (
<Button variant="outline" size="sm">