Improve delete UX and prepaid credit time display.
Show minutes and local expiry for resource credits; add shared delete hook with row/card loading overlays, detail-page deleting modal, and disabled controls to prevent double-delete. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -187,6 +187,9 @@ export interface ResourceCredit {
|
||||
billingCycle?: string;
|
||||
expiresAt: string;
|
||||
remainingMs: number;
|
||||
remainingDays?: number;
|
||||
remainingHours?: number;
|
||||
remainingMinutes?: number;
|
||||
remainingLabel: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user