diff --git a/apps/portal/src/features/catalog/components/internet/InternetPlanCard.tsx b/apps/portal/src/features/catalog/components/internet/InternetPlanCard.tsx index f47cce69..8bdc0b84 100644 --- a/apps/portal/src/features/catalog/components/internet/InternetPlanCard.tsx +++ b/apps/portal/src/features/catalog/components/internet/InternetPlanCard.tsx @@ -53,7 +53,8 @@ export function InternetPlanCard({ return "border border-yellow-200 bg-white shadow-lg hover:shadow-xl ring-1 ring-yellow-100"; if (isPlatinum) return "border border-indigo-200 bg-white shadow-lg hover:shadow-xl ring-1 ring-indigo-100"; - if (isSilver) return "border border-gray-200 bg-white shadow-lg hover:shadow-xl ring-1 ring-gray-100"; + if (isSilver) + return "border border-gray-200 bg-white shadow-lg hover:shadow-xl ring-1 ring-gray-100"; return "border border-gray-200 bg-white shadow hover:shadow-lg"; }; @@ -64,25 +65,60 @@ export function InternetPlanCard({ return "default"; }; - // Format plan name display to show just the plan tier prominently - const formatPlanName = () => { - if (plan.name) { - // Extract tier and offering type from name like "Internet Gold Plan (Home 1G)" - const match = plan.name.match(/(\w+)\s+Plan\s+\((.*?)\)/); - if (match) { - return ( -
+ {plan.catalogMetadata?.tierDescription || plan.description} +
+ ) : null}- {plan.catalogMetadata?.tierDescription || plan.description} -
- {/* Features */}- Additional fees are incurred for the PLATINUM service. Please refer to the information - from our tech team for details. -
-- * Will appear on the invoice as "Platinum Base Plan". Device subscriptions - will be added later. -
-+ Additional fees are incurred for the PLATINUM service. Please refer to the information + from our tech team for details. +
++ * Will appear on the invoice as "Platinum Base Plan". Device subscriptions will be added later. +
+{description}
-{details}
++ Access Mode: IPoE-HGW (Pre-configured for {plan.internetPlanTier} plan) +
{plan.description}
-