feat: team admin can pay billing (#2240)

This commit is contained in:
Joel
2024-01-26 18:06:54 +08:00
committed by GitHub
parent 9fd55157d6
commit 2fc0dcc10a
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(