Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions apps/cloud/src/routes/app/billing_.plans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ const ACTION_LABELS: Record<string, string> = {

const PLAN_ORDER = ["free", "team", "enterprise"];

// "14-day free trial", "1-month free trial", etc. — reads the trial config
// synced from the repo-root autumn.config.ts so copy tracks the plan. The unit
// stays singular because it reads as a compound adjective ("14-day", "2-month").
const trialLabel = (freeTrial: NonNullable<Plan["freeTrial"]>): string =>
`${freeTrial.durationLength}-${freeTrial.durationType} free trial`;

function PlansPage() {
const { attach, openCustomerPortal, isLoading: customerLoading } = useCustomer();
const { data: plans, isLoading: plansLoading, isFetching } = useListPlans();
Expand Down Expand Up @@ -186,14 +180,6 @@ function PlansPage() {
)}
</div>

{trialOffered && freeTrial && (
<p className="mt-2 text-xs font-medium text-primary">
{trialLabel(freeTrial)}
{plan.price?.amount != null &&
`, then $${plan.price.amount} / ${plan.price.interval ?? "month"}`}
</p>
)}

<div className="mt-4">
{(isCurrent && !isCanceling) || isScheduled ? (
<div className="flex h-9 items-center justify-center rounded-md border border-border bg-muted/30 text-sm font-medium text-muted-foreground">
Expand Down
Loading