feat: add payment failed notifications to in-app notification center for owners and admins

This commit is contained in:
Usman Baig
2026-02-13 14:23:19 +01:00
parent 43d40e5735
commit c37613e823
2 changed files with 2 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ function formatTimeAgo(dateStr: string): string {
}
function getTypeIcon(type: string) {
if (type.includes('down') || type.includes('degraded')) {
if (type.includes('down') || type.includes('degraded') || type.startsWith('billing_')) {
return <AlertTriangleIcon className="w-4 h-4 shrink-0 text-amber-500" />
}
return <CheckCircleIcon className="w-4 h-4 shrink-0 text-emerald-500" />