refactor(theming): yellow-* → warning-* for status/pending semantics

Sweep yellow color classes that signal pending/warning status (admin pending pills,
withdrawal status, risk indicators) → warning-* tokens. Telegram Stars / fortune wheel
yellow kept as brand (TopUpAmount + Wheel + FortuneWheel).
This commit is contained in:
c0mrade
2026-05-26 11:21:16 +03:00
parent ae7da0c86a
commit d7cbbe077a
6 changed files with 13 additions and 12 deletions

View File

@@ -14,8 +14,8 @@ const statusConfig: Record<string, { labelKey: string; color: string; bgColor: s
},
pending: {
labelKey: 'admin.partnerDetail.status.pending',
color: 'text-yellow-400',
bgColor: 'bg-yellow-500/20',
color: 'text-warning-400',
bgColor: 'bg-warning-500/20',
},
rejected: {
labelKey: 'admin.partnerDetail.status.rejected',

View File

@@ -86,7 +86,7 @@ function StatusBadge({ status }: { status: string }) {
deleted: 'bg-dark-600 text-dark-400 border-dark-500',
trial: 'bg-accent-500/20 text-accent-400 border-accent-500/30',
expired: 'bg-warning-500/20 text-warning-400 border-warning-500/30',
limited: 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30',
limited: 'bg-warning-500/20 text-warning-400 border-warning-500/30',
disabled: 'bg-dark-600 text-dark-400 border-dark-500',
};

View File

@@ -142,7 +142,7 @@ function UserRow({ user, onClick, formatAmount }: UserRowProps) {
: user.subscription_status === 'trial'
? 'border-accent-500/30 bg-accent-500/20 text-accent-400'
: user.subscription_status === 'limited'
? 'border-yellow-500/30 bg-yellow-500/20 text-yellow-400'
? 'border-warning-500/30 bg-warning-500/20 text-warning-400'
: 'border-warning-500/30 bg-warning-500/20 text-warning-400'
}`}
>

View File

@@ -57,13 +57,13 @@ export default function AdminWithdrawals() {
{data && (
<div className="mb-6 grid grid-cols-2 gap-3">
<div className="rounded-xl border border-dark-700 bg-dark-800 p-4">
<div className="text-2xl font-bold text-yellow-400">{pendingCount}</div>
<div className="text-2xl font-bold text-warning-400">{pendingCount}</div>
<div className="text-sm text-dark-400">
{t('admin.withdrawals.overview.pendingCount')}
</div>
</div>
<div className="rounded-xl border border-dark-700 bg-dark-800 p-4">
<div className="text-2xl font-bold text-yellow-400">
<div className="text-2xl font-bold text-warning-400">
{formatWithCurrency(pendingTotal / 100, 0)}
</div>
<div className="text-sm text-dark-400">