diff --git a/src/pages/Subscriptions.tsx b/src/pages/Subscriptions.tsx index c328125..5511b2c 100644 --- a/src/pages/Subscriptions.tsx +++ b/src/pages/Subscriptions.tsx @@ -13,15 +13,15 @@ function EmptyState({ onBuy }: { onBuy: () => void }) { return (
void }) { />
-

+

{t('subscriptions.empty', 'Нет подписок')}

-

+

{t('subscriptions.emptyDesc', 'У вас пока нет активных подписок')}

@@ -73,52 +73,65 @@ export default function Subscriptions() { } return ( -
-

- {t('subscriptions.title', 'Мои подписки')} -

+
+ {/* Header */} +
+

+ {t('subscriptions.title', 'Мои подписки')} +

+ {!isLoading && subscriptions.length > 0 && ( + + )} +
+ {/* Loading */} {isLoading && ( -
+
{[1, 2].map((i) => (
))}
)} + {/* Empty state */} {!isLoading && subscriptions.length === 0 && ( navigate('/subscription/purchase')} /> )} - {subscriptions.map((sub) => ( - navigate(`/subscriptions/${sub.id}`)} - /> - ))} - - {!isLoading && subscriptions.length > 0 && ( - + {/* Subscription grid */} + {subscriptions.length > 0 && ( +
+ {subscriptions.map((sub) => ( + navigate(`/subscriptions/${sub.id}`)} + /> + ))} +
)}
);