feat: team admin can pay billing (#2240)

This commit is contained in:
Joel 2024-01-26 18:06:54 +08:00 • committed by GitHub
commit 2fc0dcc10a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 18 additions and 11 deletions

View file

@ -20,8 +20,8 @@ const Pricing: FC<Props> = ({
}) => {
const { t } = useTranslation()
const { plan } = useProviderContext()
const { isCurrentWorkspaceOwner } = useAppContext()
const canPay = isCurrentWorkspaceOwner
const { isCurrentWorkspaceManager } = useAppContext()
const canPay = isCurrentWorkspaceManager
const [planRange, setPlanRange] = React.useState<PlanRange>(PlanRange.monthly)
return createPortal(