♻️ refactor(web): consolidate design-system primitives and responsive data views

This commit is contained in:
t0ng7u
2026-07-11 05:13:16 +08:00
parent 262ab93123
commit 0918bdb49a
451 changed files with 7295 additions and 7693 deletions
+2 -2
View File
@@ -340,12 +340,12 @@ export function formatBalance(balance: number | null | undefined): string {
*/
export function getBalanceVariant(
balance: number
): 'success' | 'warning' | 'danger' | 'neutral' {
): 'success' | 'warning' | 'destructive' | 'neutral' {
if (balance === 0) {
return 'neutral'
}
if (balance < 1) {
return 'danger'
return 'destructive'
}
if (balance < 10) {
return 'warning'