From 33d35d91e67a436925be481412252e3b11a82413 Mon Sep 17 00:00:00 2001 From: hexdev Date: Mon, 17 Aug 2026 21:58:11 +0700 Subject: [PATCH] feat: unavailable addons support --- src/components/AddonList.tsx | 5 ++++- src/lib/format.test.ts | 8 ++++---- src/lib/format.ts | 2 +- src/pages/PlanPage.test.tsx | 21 +++++++++++++++++++-- src/pages/PlanPage.tsx | 3 ++- src/styles/components.css | 14 ++++++++++++++ src/types.ts | 1 + 7 files changed, 45 insertions(+), 9 deletions(-) diff --git a/src/components/AddonList.tsx b/src/components/AddonList.tsx index 08782cb..f4d6ce4 100644 --- a/src/components/AddonList.tsx +++ b/src/components/AddonList.tsx @@ -19,18 +19,21 @@ export function AddonList({ addons, devices, selected, onToggle }: AddonListProp
{addons.map((a) => { const on = selected.includes(a.id); + const enabled = a.is_enabled; const price = addonPriceForDevices(a, devices); return (