From 8b056e0b463d05106d389c41eae671684df7b043 Mon Sep 17 00:00:00 2001 From: Fringg Date: Tue, 10 Mar 2026 20:33:19 +0300 Subject: [PATCH] fix: hide Quick Renew for expired trial subscriptions Show only Tariffs button as primary CTA when trial expires. Remove duplicate gift.copyMessage i18n keys. --- .../dashboard/SubscriptionCardExpired.tsx | 147 ++++++++++-------- src/locales/en.json | 1 - src/locales/ru.json | 1 - 3 files changed, 80 insertions(+), 69 deletions(-) diff --git a/src/components/dashboard/SubscriptionCardExpired.tsx b/src/components/dashboard/SubscriptionCardExpired.tsx index ad76403..9b13259 100644 --- a/src/components/dashboard/SubscriptionCardExpired.tsx +++ b/src/components/dashboard/SubscriptionCardExpired.tsx @@ -207,79 +207,92 @@ export default function SubscriptionCardExpired({ {/* Action buttons */}
- {/* Quick Renew or Top Up button */} - {hasBalance ? ( - + ) : ( + )} - {isRenewing - ? t('common.loading') - : isDisabledDaily - ? t('dashboard.suspended.resume') - : t('dashboard.expired.quickRenew')} - - ) : ( - + )} - {/* Renew (go to purchase page) */} + {/* Tariffs (go to purchase page) — full-width for trials */} {t('dashboard.expired.tariffs')} diff --git a/src/locales/en.json b/src/locales/en.json index e68e375..0df50cd 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -4255,7 +4255,6 @@ "codeReadyTitle": "Gift code is ready!", "codeLabel": "Gift code", "sharePreview": "Message to share", - "copyMessage": "Copy", "activatedBy": "Activated by {{username}}", "sentTo": "Sent to {{recipient}}", "daysShort": "days", diff --git a/src/locales/ru.json b/src/locales/ru.json index efa1516..6b02b9e 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -4819,7 +4819,6 @@ "codeReadyTitle": "Код подарка готов!", "codeLabel": "Код подарка", "sharePreview": "Сообщение для отправки", - "copyMessage": "Копировать", "activatedBy": "Активирован пользователем {{username}}", "sentTo": "Отправлен {{recipient}}", "daysShort": "дн.",