mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
fix: remove duplicate tariff info line, make tariff card clickable
This commit is contained in:
@@ -148,17 +148,6 @@ export default function SubscriptionCardActive({
|
|||||||
<h2 className="text-lg font-bold tracking-tight text-white">
|
<h2 className="text-lg font-bold tracking-tight text-white">
|
||||||
{t('dashboard.trafficUsageTitle')}
|
{t('dashboard.trafficUsageTitle')}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{/* Tariff info line */}
|
|
||||||
<span className="text-xs text-white/35">
|
|
||||||
{subscription.tariff_name && (
|
|
||||||
<>
|
|
||||||
{t('dashboard.tariff')} {subscription.tariff_name} ·{' '}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{t('dashboard.validUntil', { date: formattedDate })} · {subscription.device_limit}{' '}
|
|
||||||
{t('dashboard.devicesShort')}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Big percentage / infinity */}
|
{/* Big percentage / infinity */}
|
||||||
@@ -261,8 +250,9 @@ export default function SubscriptionCardActive({
|
|||||||
|
|
||||||
{/* ─── Stats row: Tariff + Days Left ─── */}
|
{/* ─── Stats row: Tariff + Days Left ─── */}
|
||||||
<div className="mb-5 flex gap-2.5">
|
<div className="mb-5 flex gap-2.5">
|
||||||
{/* Tariff badge */}
|
{/* Tariff badge — clickable */}
|
||||||
<div
|
<Link
|
||||||
|
to="/subscription"
|
||||||
className="flex-1 rounded-[14px] p-3.5 transition-all duration-500"
|
className="flex-1 rounded-[14px] p-3.5 transition-all duration-500"
|
||||||
style={{
|
style={{
|
||||||
background: `linear-gradient(135deg, ${zone.mainHex}12, ${zone.mainHex}06)`,
|
background: `linear-gradient(135deg, ${zone.mainHex}12, ${zone.mainHex}06)`,
|
||||||
@@ -281,7 +271,7 @@ export default function SubscriptionCardActive({
|
|||||||
<div className="mt-0.5 font-mono text-[10px] text-white/30">
|
<div className="mt-0.5 font-mono text-[10px] text-white/30">
|
||||||
{t('dashboard.validUntil', { date: formattedDate })}
|
{t('dashboard.validUntil', { date: formattedDate })}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Link>
|
||||||
|
|
||||||
{/* Days remaining */}
|
{/* Days remaining */}
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user