mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: hide Quick Renew for expired trial subscriptions
Show only Tariffs button as primary CTA when trial expires. Remove duplicate gift.copyMessage i18n keys.
This commit is contained in:
@@ -207,7 +207,9 @@ export default function SubscriptionCardExpired({
|
|||||||
|
|
||||||
{/* Action buttons */}
|
{/* Action buttons */}
|
||||||
<div className="flex gap-2.5">
|
<div className="flex gap-2.5">
|
||||||
{/* Quick Renew or Top Up button */}
|
{/* Quick Renew or Top Up button (hidden for expired trials) */}
|
||||||
|
{!subscription.is_trial && (
|
||||||
|
<>
|
||||||
{hasBalance ? (
|
{hasBalance ? (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -271,15 +273,26 @@ export default function SubscriptionCardExpired({
|
|||||||
{t('dashboard.expired.topUp')}
|
{t('dashboard.expired.topUp')}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Renew (go to purchase page) */}
|
{/* Tariffs (go to purchase page) — full-width for trials */}
|
||||||
<Link
|
<Link
|
||||||
to="/subscription/purchase"
|
to="/subscription/purchase"
|
||||||
className="flex items-center justify-center rounded-[14px] px-5 py-3.5 text-[15px] font-semibold tracking-tight text-dark-50/50 transition-colors duration-200"
|
className={`flex items-center justify-center rounded-[14px] px-5 py-3.5 text-[15px] font-semibold tracking-tight transition-colors duration-200 ${
|
||||||
style={{
|
subscription.is_trial ? 'flex-1 text-white' : 'text-dark-50/50'
|
||||||
|
}`}
|
||||||
|
style={
|
||||||
|
subscription.is_trial
|
||||||
|
? {
|
||||||
|
background: 'linear-gradient(135deg, #FF3B5C, #FF6B35)',
|
||||||
|
boxShadow: '0 4px 20px rgba(255,59,92,0.2)',
|
||||||
|
}
|
||||||
|
: {
|
||||||
background: g.innerBg,
|
background: g.innerBg,
|
||||||
border: `1px solid ${g.innerBorder}`,
|
border: `1px solid ${g.innerBorder}`,
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{t('dashboard.expired.tariffs')}
|
{t('dashboard.expired.tariffs')}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -4255,7 +4255,6 @@
|
|||||||
"codeReadyTitle": "Gift code is ready!",
|
"codeReadyTitle": "Gift code is ready!",
|
||||||
"codeLabel": "Gift code",
|
"codeLabel": "Gift code",
|
||||||
"sharePreview": "Message to share",
|
"sharePreview": "Message to share",
|
||||||
"copyMessage": "Copy",
|
|
||||||
"activatedBy": "Activated by {{username}}",
|
"activatedBy": "Activated by {{username}}",
|
||||||
"sentTo": "Sent to {{recipient}}",
|
"sentTo": "Sent to {{recipient}}",
|
||||||
"daysShort": "days",
|
"daysShort": "days",
|
||||||
|
|||||||
@@ -4819,7 +4819,6 @@
|
|||||||
"codeReadyTitle": "Код подарка готов!",
|
"codeReadyTitle": "Код подарка готов!",
|
||||||
"codeLabel": "Код подарка",
|
"codeLabel": "Код подарка",
|
||||||
"sharePreview": "Сообщение для отправки",
|
"sharePreview": "Сообщение для отправки",
|
||||||
"copyMessage": "Копировать",
|
|
||||||
"activatedBy": "Активирован пользователем {{username}}",
|
"activatedBy": "Активирован пользователем {{username}}",
|
||||||
"sentTo": "Отправлен {{recipient}}",
|
"sentTo": "Отправлен {{recipient}}",
|
||||||
"daysShort": "дн.",
|
"daysShort": "дн.",
|
||||||
|
|||||||
Reference in New Issue
Block a user