From cb7693e3ffb5d609c90c6f611d9188f6a61e5777 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 11:09:28 +0300 Subject: [PATCH] refactor(theming): replace green-* / emerald-* with success-* tokens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sweep: text/bg/border/ring/from/to/via/fill/stroke/shadow-{green,emerald}-N → success-N (all were semantic success/active/paid states). --- src/components/admin/AnalyticsTab.tsx | 2 +- src/components/connection/TvQuickConnect.tsx | 2 +- src/components/subscription/SubscriptionListCard.tsx | 6 +++--- src/pages/AdminPayments.tsx | 8 ++++---- src/pages/RenewSubscription.tsx | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/admin/AnalyticsTab.tsx b/src/components/admin/AnalyticsTab.tsx index a1a7090..e4ec32f 100644 --- a/src/components/admin/AnalyticsTab.tsx +++ b/src/components/admin/AnalyticsTab.tsx @@ -226,7 +226,7 @@ export function AnalyticsTab() {
-
+
diff --git a/src/components/connection/TvQuickConnect.tsx b/src/components/connection/TvQuickConnect.tsx index 424471d..fd1e9ee 100644 --- a/src/components/connection/TvQuickConnect.tsx +++ b/src/components/connection/TvQuickConnect.tsx @@ -323,7 +323,7 @@ export default function TvQuickConnect({ subscriptionUrl, isLight }: Props) { {toast && (
{toast.text} diff --git a/src/components/subscription/SubscriptionListCard.tsx b/src/components/subscription/SubscriptionListCard.tsx index 827049c..a002b1e 100644 --- a/src/components/subscription/SubscriptionListCard.tsx +++ b/src/components/subscription/SubscriptionListCard.tsx @@ -42,7 +42,7 @@ function StatusBadge({ } const color = isActive - ? 'bg-emerald-400/15 text-emerald-400 border-emerald-400/20' + ? 'bg-success-400/15 text-success-400 border-success-400/20' : isLimited ? 'bg-amber-400/15 text-amber-400 border-amber-400/20' : 'bg-error-400/15 text-error-400 border-error-400/20'; @@ -100,7 +100,7 @@ export default function SubscriptionListCard({ ? 'bg-error-400' : trafficPercent >= 70 ? 'bg-amber-400' - : 'bg-emerald-400'; + : 'bg-success-400'; const isLimitedStatus = subscription.status === 'limited'; @@ -211,7 +211,7 @@ export default function SubscriptionListCard({ : t('subscription.autopay', 'Автопродление'); return ( = { - paid: 'bg-green-500/20 text-green-400', + paid: 'bg-success-500/20 text-success-400', pending: 'bg-amber-500/20 text-amber-400', cancelled: 'bg-error-500/20 text-error-400', }; @@ -77,7 +77,7 @@ function StatCard({ label, value, color, isActive, onClick }: StatCardProps) { const colors: Record = { blue: 'border-accent-500/30 bg-accent-500/20 text-accent-400', amber: 'border-amber-500/30 bg-amber-500/20 text-amber-400', - green: 'border-green-500/30 bg-green-500/20 text-green-400', + green: 'border-success-500/30 bg-success-500/20 text-success-400', red: 'border-error-500/30 bg-error-500/20 text-error-400', }; @@ -457,7 +457,7 @@ export default function AdminPayments() { {payment.method_display} {payment.is_paid && ( - + {t('admin.payments.paid')} )} @@ -587,7 +587,7 @@ export default function AdminPayments() {
diff --git a/src/pages/RenewSubscription.tsx b/src/pages/RenewSubscription.tsx index 03396f8..22c87de 100644 --- a/src/pages/RenewSubscription.tsx +++ b/src/pages/RenewSubscription.tsx @@ -170,7 +170,7 @@ export default function RenewSubscription() { {option.period_days} {t('common.units.days', 'дней')} {option.discount_percent > 0 && ( - + -{option.discount_percent}% )}