Skip to content

Commit 0bb5fc1

Browse files
committed
Show a tooltip on the invite button if you don’t have enough seats
1 parent ae9aa41 commit 0bb5fc1

File tree

1 file changed

+11
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team

1 file changed

+11
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,17 @@ export default function Page() {
238238
))}
239239
</Property.Table>
240240
</AdminDebugTooltip>
241-
{!requiresUpgrade && (
241+
{requiresUpgrade ? (
242+
<SimpleTooltip
243+
button={
244+
<ButtonContent variant="primary/small" LeadingIcon={UserPlusIcon} className="cursor-not-allowed opacity-50">
245+
Invite a team member
246+
</ButtonContent>
247+
}
248+
content="Purchase more seats to invite more team members"
249+
disableHoverableContent
250+
/>
251+
) : (
242252
<LinkButton
243253
to={inviteTeamMemberPath(organization)}
244254
variant="primary/small"

0 commit comments

Comments
 (0)