diff --git a/apps/dashboard/src/@/api/team.ts b/apps/dashboard/src/@/api/team.ts index 5baa85542e4..78ea7550851 100644 --- a/apps/dashboard/src/@/api/team.ts +++ b/apps/dashboard/src/@/api/team.ts @@ -25,7 +25,7 @@ export type Team = { billingPlan: "pro" | "growth" | "free" | "starter"; billingStatus: "validPayment" | (string & {}) | null; billingEmail: string | null; - growthTrialEligible: boolean | null; + growthTrialEligible: false; enabledScopes: EnabledTeamScope[]; }; diff --git a/apps/dashboard/src/components/settings/Account/Billing/Pricing.tsx b/apps/dashboard/src/components/settings/Account/Billing/Pricing.tsx index 8e543ae932b..04c1522450e 100644 --- a/apps/dashboard/src/components/settings/Account/Billing/Pricing.tsx +++ b/apps/dashboard/src/components/settings/Account/Billing/Pricing.tsx @@ -57,20 +57,18 @@ export const BillingPricing: React.FC = ({ }, [validTeamPlan]); const growthCardCta: CtaLink | undefined = useMemo(() => { - const trialTitle = "Claim your 1-month free"; - switch (validTeamPlan) { // free > growth case "free": { return { - label: team.growthTrialEligible ? trialTitle : "Get started", + label: "Get started", }; } // starter > growth case "starter": { return { - label: team.growthTrialEligible ? trialTitle : "Upgrade", + label: "Upgrade", }; } @@ -87,7 +85,7 @@ export const BillingPricing: React.FC = ({ }; } } - }, [team, validTeamPlan]); + }, [validTeamPlan]); const proCta: CtaLink | undefined = useMemo(() => { // pro > pro @@ -138,20 +136,16 @@ export const BillingPricing: React.FC = ({ title: growthCardCta.label, tracking: { category: "account", - label: team.growthTrialEligible - ? "claimGrowthTrial" - : "growthPlan", + label: "growthPlan", }, variant: "default", - hint: team.growthTrialEligible - ? "Your free trial will end after 30 days." - : undefined, + hint: undefined, } : undefined } - canTrialGrowth={team.growthTrialEligible || false} + canTrialGrowth={false} // upsell growth plan if user is on free plan - highlighted={validTeamPlan === "free"} + highlighted={validTeamPlan === "free" || validTeamPlan === "starter"} teamSlug={team.slug} redirectToCheckout={redirectToCheckout} /> diff --git a/apps/dashboard/src/stories/stubs.ts b/apps/dashboard/src/stories/stubs.ts index 51ac911e36a..68349aee83b 100644 --- a/apps/dashboard/src/stories/stubs.ts +++ b/apps/dashboard/src/stories/stubs.ts @@ -42,7 +42,7 @@ export function teamStub(id: string, billingPlan: Team["billingPlan"]): Team { createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), billingEmail: "foo@example.com", - growthTrialEligible: true, + growthTrialEligible: false, enabledScopes: [ "pay", "storage", diff --git a/packages/service-utils/src/core/api.ts b/packages/service-utils/src/core/api.ts index 3544b325e10..20dbb489ed1 100644 --- a/packages/service-utils/src/core/api.ts +++ b/packages/service-utils/src/core/api.ts @@ -49,7 +49,7 @@ export type TeamResponse = { updatedAt: Date | null; billingEmail: string | null; billingStatus: "noPayment" | "validPayment" | "invalidPayment" | null; - growthTrialEligible: boolean | null; + growthTrialEligible: false; enabledScopes: ServiceName[]; };