Skip to content

Commit 91fe8d8

Browse files
atrakhConvex, Inc.
authored and
Convex, Inc.
committed
Increase entitlement for pro max projects (#37258)
GitOrigin-RevId: c896ddc38de2b9fa76d91224f58002a5dfb13271
1 parent e5a81c4 commit 91fe8d8

File tree

1 file changed

+21
-14
lines changed
  • npm-packages/dashboard/src/pages/t/[team]

1 file changed

+21
-14
lines changed

npm-packages/dashboard/src/pages/t/[team]/index.tsx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,27 @@ export default withAuthenticatedPage(() => {
5454
{team && nonDemoProjects && (
5555
<div className="w-full">
5656
{entitlements &&
57-
nonDemoProjects.length >= entitlements.maxProjects && (
58-
<Callout className="mb-4" variant="upsell">
59-
<div className="flex gap-1">
60-
You've reached the project limit for this team.
61-
<Link
62-
href={`/${team?.slug}/settings/billing`}
63-
className="items-center text-content-link"
64-
>
65-
Upgrade
66-
</Link>
67-
to create more projects.
68-
</div>
69-
</Callout>
70-
)}
57+
nonDemoProjects.length >= entitlements.maxProjects &&
58+
subscription ? (
59+
<Callout className="mb-4" variant="upsell">
60+
You've reached a soft limit on the number of projects you
61+
can create for this team. Please contact support to increase
62+
this limit.
63+
</Callout>
64+
) : (
65+
<Callout className="mb-4" variant="upsell">
66+
<div className="flex gap-1">
67+
You've reached the project limit for this team.
68+
<Link
69+
href={`/${team?.slug}/settings/billing`}
70+
className="items-center text-content-link"
71+
>
72+
Upgrade
73+
</Link>
74+
to create more projects.
75+
</div>
76+
</Callout>
77+
)}
7178

7279
{isReferralsBannerVisible && (
7380
<ReferralsBanner

0 commit comments

Comments
 (0)