File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments