mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: hide legacy subscription card on Dashboard in multi-tariff mode
This commit is contained in:
@@ -292,7 +292,9 @@ export default function Dashboard() {
|
|||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Subscription Status Card */}
|
{/* Subscription Status Card — hidden in multi-tariff (managed via /subscriptions) */}
|
||||||
|
{!isMultiTariff && (
|
||||||
|
<>
|
||||||
{subLoading ? (
|
{subLoading ? (
|
||||||
<div className="bento-card">
|
<div className="bento-card">
|
||||||
<div className="mb-4 flex items-center justify-between">
|
<div className="mb-4 flex items-center justify-between">
|
||||||
@@ -323,6 +325,8 @@ export default function Dashboard() {
|
|||||||
connectedDevices={devicesData?.total ?? 0}
|
connectedDevices={devicesData?.total ?? 0}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Trial Activation */}
|
{/* Trial Activation */}
|
||||||
{hasNoSubscription && !trialLoading && trialInfo?.is_available && (
|
{hasNoSubscription && !trialLoading && trialInfo?.is_available && (
|
||||||
|
|||||||
Reference in New Issue
Block a user