Skip to content

Commit cc5cdd4

Browse files
committed
enable team invites for starter and growth plans (#6312)
blocked by: thirdweb-dev/api-server#1412
1 parent 8823acb commit cc5cdd4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ export function InviteSection(props: {
5858
const teamPlan = getValidTeamPlan(props.team);
5959
let bottomSection: React.ReactNode = null;
6060
const maxAllowedInvitesAtOnce = 10;
61-
const inviteEnabled =
62-
(teamPlan === "starter" || teamPlan === "growth") &&
63-
props.userHasEditPermission;
61+
// invites are enabled if user has edit permission and team plan is not "free"
62+
const inviteEnabled = teamPlan !== "free" && props.userHasEditPermission;
6463

6564
const form = useForm<InviteFormValues>({
6665
resolver: zodResolver(inviteFormSchema),
@@ -121,13 +120,13 @@ export function InviteSection(props: {
121120
<div className="flex items-center border-border border-t px-4 py-4 lg:justify-between lg:px-6">
122121
{teamPlan === "pro" && (
123122
<p className="text-muted-foreground text-sm">
124-
Team invites are not enabled on your plan.{" "}
123+
Team members are billed according to your plan.{" "}
125124
<Link
126125
href="https://meetings.hubspot.com/sales-thirdweb/thirdweb-pro"
127126
target="_blank"
128127
className="text-link-foreground hover:text-foreground"
129128
>
130-
Reach out to sales <ExternalLinkIcon className="inline size-3" />
129+
Reach out to sales <ExternalLinkIcon className="inline size-3" />.
131130
</Link>
132131
</p>
133132
)}

0 commit comments

Comments
 (0)