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:
@@ -177,7 +177,7 @@ export default function Dashboard() {
|
||||
<p className="text-sm text-muted-foreground">{formatDate(order.created_at)}</p>
|
||||
</div>
|
||||
<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)}
|
||||
</Badge>
|
||||
<span className="font-bold">{formatIDR(order.total_amount)}</span>
|
||||
|
||||
Reference in New Issue
Block a user