From cc5cdd4f7960e3b420c55eea979055af0265d6f1 Mon Sep 17 00:00:00 2001 From: jnsdls Date: Fri, 21 Feb 2025 23:43:33 +0000 Subject: [PATCH] enable team invites for starter and growth plans (#6312) blocked by: https://github.com/thirdweb-dev/api-server/pull/1412 --- .../(team)/~/settings/members/InviteSection.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx b/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx index 2b1e3c4cae6..1deb8d10a5c 100644 --- a/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx +++ b/apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx @@ -58,9 +58,8 @@ export function InviteSection(props: { const teamPlan = getValidTeamPlan(props.team); let bottomSection: React.ReactNode = null; const maxAllowedInvitesAtOnce = 10; - const inviteEnabled = - (teamPlan === "starter" || teamPlan === "growth") && - props.userHasEditPermission; + // invites are enabled if user has edit permission and team plan is not "free" + const inviteEnabled = teamPlan !== "free" && props.userHasEditPermission; const form = useForm({ resolver: zodResolver(inviteFormSchema), @@ -121,13 +120,13 @@ export function InviteSection(props: {
{teamPlan === "pro" && (

- Team invites are not enabled on your plan.{" "} + Team members are billed according to your plan.{" "} - Reach out to sales + Reach out to sales .

)}