🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor PlanDialog component to improve layout and styling. Removed unnecessary class names, adjusted text alignment, and streamlined the display of pricing information for better readability.
Bill Yang8e89f656b4c3
diff --git a/client/src/components/subscription/PaidPlain/PlanDialog.tsx b/client/src/components/subscription/PaidPlain/PlanDialog.tsxindex e71e0abb9..2608ba75f 100644--- a/client/src/components/subscription/PaidPlain/PlanDialog.tsx+++ b/client/src/components/subscription/PaidPlain/PlanDialog.tsx@@ -173,7 +173,7 @@ export function PlanDialog({ open, onOpenChange, currentPlanName, hasActiveSubsc{ type: "pro" as const, title: "Pro", subtitle: "Advanced features + session replays" },].map(({ type, title, subtitle }) => (<div key={type} className="space-y-3">- <div className="text-center mb-4">+ <div className="mb-4"><h3 className="text-xl font-bold">{title}</h3><p className="text-sm text-neutral-400">{subtitle}</p></div>@@ -196,19 +196,18 @@ export function PlanDialog({ open, onOpenChange, currentPlanName, hasActiveSubsc)}onClick={() => handlePlanSelection(plan.priceId, plan.name)}>- <div className="flex items-center justify-between w-full">- <Badge variant="success">{type === "pro" ? "Pro" : "Standard"}</Badge>+ <div className="flex justify-between w-full">+ <div className="text-neutral-100 font-medium flex-end">+ {tier.shortName} events{" "}+ <span className="text-neutral-400 text-xs font-normal">/ month</span>+ </div><div className="text-xs text-neutral-400"><span className="text-neutral-200 font-semibold text-base">${isAnnual ? Math.round(plan.price / 12) : plan.price}</span>{" "}- / month+ /month</div></div>- <div className="text-neutral-100 font-medium flex items-center gap-2">- {tier.shortName} events <span className="text-neutral-400 text-xs font-normal">/ month</span>- {isLoading && <Loader2 className="w-4 h-4 animate-spin" />}- </div></div>);})}