fix: standardize currency and input selection styles

This commit is contained in:
hectorzhao
2026-07-11 10:49:00 +08:00
parent 20f89d14aa
commit a4d42cf702
15 changed files with 52 additions and 33 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { useEffect, useMemo, useState } from 'react';
import { ClipboardCopy, FileText } from 'lucide-react';
import { clientApi, type ApplicationCmppParams, type ClientSmsApplication } from '@/api/adminApi';
import { formatCents } from '@/utils/currency';
import { Button, Modal, Pagination, Tag } from '@/components/ui';
type LinkStatus = 'connected' | 'degraded' | 'disconnected' | 'inactive';
@@ -33,7 +34,7 @@ function normalizeStatus(application: ClientSmsApplication): LinkStatus {
}
function formatPrice(cents?: number | null) {
return `${((cents ?? 0) / 100).toFixed(4)}`;
return `${formatCents(cents)}`;
}
function mapParams(params: ApplicationCmppParams): ParamRow[] {