From 5c889f3a63f744966d7cde3fe6b60dbdb04ec4d0 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 3 Dec 2025 21:21:00 +0000 Subject: [PATCH] plan card tweaks --- .../components/design-elements/PlanCard.tsx | 66 ++++++++++++++----- client/src/pages/billing/Billing.tsx | 7 +- 2 files changed, 56 insertions(+), 17 deletions(-) diff --git a/client/src/components/design-elements/PlanCard.tsx b/client/src/components/design-elements/PlanCard.tsx index 3b6beb4f5..f713bfd23 100644 --- a/client/src/components/design-elements/PlanCard.tsx +++ b/client/src/components/design-elements/PlanCard.tsx @@ -1,5 +1,7 @@ import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; +import Chip from "@mui/material/Chip"; +import { Button } from "@/components/inputs"; import { BaseBox } from "@/components/design-elements"; import { PersonStanding, @@ -18,10 +20,12 @@ export const PlanCard = ({ plan, currentPlan, onClick, + loading, }: { plan: Entitlements; currentPlan: PlanKey | null; onClick?: (planKey: PlanKey) => void; + loading?: boolean; }) => { const selected = plan.plan === currentPlan; const theme = useTheme(); @@ -89,17 +93,29 @@ export const PlanCard = ({ return ( onClick?.(plan.plan)} > - + {plan.plan} - + + {plan.plan === "pro" && ( + + )} + + @@ -116,12 +137,7 @@ export const PlanCard = ({ {featureItems.map((item) => ( - + {item.tooltip ? ( @@ -138,6 +154,24 @@ export const PlanCard = ({ ))} + + {selected ? null : ( + // + + )} + ); }; diff --git a/client/src/pages/billing/Billing.tsx b/client/src/pages/billing/Billing.tsx index 43dceec27..db272e91d 100644 --- a/client/src/pages/billing/Billing.tsx +++ b/client/src/pages/billing/Billing.tsx @@ -67,13 +67,18 @@ const BillingPage = () => { title="Choose a plan!" description="Choose a plan that fits your needs and start enjoying our services." /> - + {plans.map((plan) => ( ))}