mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: show subscriptions link on dashboard even with single subscription in multi-tariff mode
This commit is contained in:
@@ -276,14 +276,16 @@ export default function Dashboard() {
|
||||
{pendingGifts && pendingGifts.length > 0 && <PendingGiftCard gifts={pendingGifts} />}
|
||||
|
||||
{/* Multi-tariff: show link to subscriptions list */}
|
||||
{isMultiTariff && multiSubCount > 1 && (
|
||||
{isMultiTariff && (
|
||||
<Link to="/subscriptions" className="bento-card flex items-center justify-between">
|
||||
<div>
|
||||
<div className="text-sm font-medium opacity-60">
|
||||
{t('dashboard.subscriptions', 'Подписки')}
|
||||
</div>
|
||||
<div className="text-lg font-bold">
|
||||
{multiSubCount} {t('dashboard.activeTariffs', 'активных тарифов')}
|
||||
{multiSubCount > 1
|
||||
? `${multiSubCount} ${t('dashboard.activeTariffs', 'активных тарифов')}`
|
||||
: t('dashboard.manageSubscriptions', 'Управление подписками')}
|
||||
</div>
|
||||
</div>
|
||||
<ChevronRightIcon />
|
||||
|
||||
Reference in New Issue
Block a user