Commit 2270f63c by zhongyuan.zhao

fix(topup): add 'failed' status badge mapping in TopupHistoryModal

The backend defines TopUpStatusFailed = "failed" but the frontend
STATUS_CONFIG was missing this status, causing raw text display
instead of a styled danger badge.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
parent 202a433f
...@@ -43,6 +43,7 @@ const { Text } = Typography; ...@@ -43,6 +43,7 @@ const { Text } = Typography;
const STATUS_CONFIG = { const STATUS_CONFIG = {
success: { type: 'success', key: '成功' }, success: { type: 'success', key: '成功' },
pending: { type: 'warning', key: '待支付' }, pending: { type: 'warning', key: '待支付' },
failed: { type: 'danger', key: '失败' },
expired: { type: 'danger', key: '已过期' }, expired: { type: 'danger', key: '已过期' },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment