Disable Invite button for solo/free. (#11089)

Currently shows up in solo mode, enough to just have the Upgrade button.
This commit is contained in:
James Dunkerley 2024-09-16 16:18:09 +01:00 committed by GitHub
parent 53e101566a
commit 6ca2c337d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,8 @@ export default function UserBar(props: UserBarProps) {
const shouldShowUpgradeButton =
user.isOrganizationAdmin && user.plan !== Plan.enterprise && user.plan !== Plan.team
const shouldShowPaywallButton = isFeatureUnderPaywall('inviteUser')
// eslint-disable-next-line no-restricted-syntax
const shouldShowPaywallButton = (false as boolean) && isFeatureUnderPaywall('inviteUser')
// FIXME[sb]: Re-enable when they are wanted again.
// eslint-disable-next-line no-restricted-syntax
const shouldShowShareButton = (false as boolean) && onShareClick != null