Fix badge color function name in Dashboard

Changed getStatusColor to getPaymentStatusColor to match the imported helper function from statusHelpers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-28 01:00:02 +07:00
parent 2f198a4d72
commit a8341a42ee

View File

@@ -177,7 +177,7 @@ export default function Dashboard() {
<p className="text-sm text-muted-foreground">{formatDate(order.created_at)}</p> <p className="text-sm text-muted-foreground">{formatDate(order.created_at)}</p>
</div> </div>
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
<Badge className={`${getStatusColor(order.payment_status || order.status)} rounded-full`}> <Badge className={`${getPaymentStatusColor(order.payment_status || order.status)} rounded-full`}>
{getPaymentStatusLabel(order.payment_status || order.status)} {getPaymentStatusLabel(order.payment_status || order.status)}
</Badge> </Badge>
<span className="font-bold">{formatIDR(order.total_amount)}</span> <span className="font-bold">{formatIDR(order.total_amount)}</span>