Skip to content

Commit 2c2bc7b

Browse files
committed
[Dashboard] Add 7-day free trial for Growth plan and Starter plan option
1 parent 950bbae commit 2c2bc7b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

apps/dashboard/src/@/components/blocks/pricing-card.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export const PricingCard: React.FC<PricingCardProps> = ({
5959
}) => {
6060
const plan = TEAM_PLANS[billingPlan];
6161
const isCustomPrice = typeof plan.price === "string";
62+
// if the team has just signed up and has not subscribed yet, and the billing plan is growth, then they get a 7 day trial
63+
const has7DayTrial =
64+
billingStatus === "noPayment" && billingPlan === "growth";
6265

6366
const trackEvent = useTrack();
6467
const remainingTrialDays =
@@ -118,14 +121,18 @@ export const PricingCard: React.FC<PricingCardProps> = ({
118121
)}
119122
</div>
120123

121-
{remainingTrialDays > 0 && (
124+
{remainingTrialDays > 0 ? (
122125
<p className="text-muted-foreground text-sm">
123126
Your free trial will{" "}
124127
{remainingTrialDays > 1
125128
? `end in ${remainingTrialDays} days.`
126129
: "end today."}
127130
</p>
128-
)}
131+
) : has7DayTrial ? (
132+
<p className="text-muted-foreground text-sm">
133+
7&nbsp;day free trial
134+
</p>
135+
) : null}
129136
</div>
130137
</div>
131138

apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export function InviteTeamMembersUI(props: {
4949
await pollWithTimeout({
5050
shouldStop: async () => {
5151
const team = await props.getTeam();
52-
const isNonFreePlan = team.billingPlan !== "free";
52+
const isNonFreePlan =
53+
team.billingPlan !== "free" && team.billingPlan !== "starter";
5354

5455
if (isNonFreePlan) {
5556
props.trackEvent({
@@ -233,7 +234,7 @@ function InviteModalContent(props: {
233234
Choose a plan
234235
</SheetTitle>
235236
<SheetDescription className="text-left leading-relaxed">
236-
Get started with the free Starter plan or upgrade to Growth plan for
237+
Get started with the Starter plan or upgrade to Growth plan for
237238
increased limits and advanced features.{" "}
238239
<UnderlineLink href="https://thirdweb.com/pricing" target="_blank">
239240
Learn more about pricing

0 commit comments

Comments
 (0)