From 6c7e4e58e0dec9b82d67afc3ca8a17f14fa1f5ee Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 16 Jan 2026 00:30:28 +0300 Subject: [PATCH] Update Subscription.tsx --- src/pages/Subscription.tsx | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx index 691f229..71981a3 100644 --- a/src/pages/Subscription.tsx +++ b/src/pages/Subscription.tsx @@ -484,7 +484,7 @@ export default function Subscription() { {/* Purchased Traffic Packages */} {subscription.traffic_purchases && subscription.traffic_purchases.length > 0 && (
-
{t('subscription.purchasedTraffic', 'Докупленный трафик')}
+
{t('subscription.purchasedTraffic')}
{subscription.traffic_purchases.map((purchase) => (
@@ -495,14 +495,26 @@ export default function Subscription() { {purchase.traffic_gb} ГБ
-
- {purchase.days_remaining === 0 ? ( - Истекает сегодня - ) : purchase.days_remaining === 1 ? ( - Остался 1 день - ) : ( - Осталось {purchase.days_remaining} {purchase.days_remaining >= 5 ? 'дней' : purchase.days_remaining === 1 ? 'день' : 'дня'} - )} +
+
+ {purchase.days_remaining === 0 ? ( + Истекает сегодня + ) : purchase.days_remaining === 1 ? ( + Остался 1 день + ) : ( + Осталось {purchase.days_remaining} {purchase.days_remaining >= 5 ? 'дней' : purchase.days_remaining === 1 ? 'день' : 'дня'} + )} +
+
+ + + + {t('subscription.trafficResetAt', 'Сброс')}: {new Date(purchase.expires_at).toLocaleDateString(undefined, { + day: '2-digit', + month: '2-digit', + year: 'numeric' + })} +