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: {
58
58
const teamPlan = getValidTeamPlan ( props . team ) ;
59
59
let bottomSection : React . ReactNode = null ;
60
60
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 ;
64
63
65
64
const form = useForm < InviteFormValues > ( {
66
65
resolver : zodResolver ( inviteFormSchema ) ,
@@ -121,13 +120,13 @@ export function InviteSection(props: {
121
120
< div className = "flex items-center border-border border-t px-4 py-4 lg:justify-between lg:px-6" >
122
121
{ teamPlan === "pro" && (
123
122
< 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.{ " " }
125
124
< Link
126
125
href = "https://meetings.hubspot.com/sales-thirdweb/thirdweb-pro"
127
126
target = "_blank"
128
127
className = "text-link-foreground hover:text-foreground"
129
128
>
130
- Reach out to sales < ExternalLinkIcon className = "inline size-3" />
129
+ Reach out to sales < ExternalLinkIcon className = "inline size-3" /> .
131
130
</ Link >
132
131
</ p >
133
132
) }
You can’t perform that action at this time.
0 commit comments