0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

fix(console): remove pro tag from m2m app creation form in oss version (#4366)

* refactor(console): improve app create form subtitle per selected framework

* fix(console): remove pro tag from m2m app creation form in oss version
This commit is contained in:
Charles Zhao 2023-08-17 03:52:05 -05:00 committed by GitHub
parent 87607ac894
commit 83022a27b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ import { useController, useForm } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import Modal from 'react-modal';
import { isCloud } from '@/consts/env';
import { TenantsContext } from '@/contexts/TenantsProvider';
import DynamicT from '@/ds-components/DynamicT';
import FormField from '@/ds-components/FormField';
@ -39,7 +40,7 @@ type Props = {
function CreateForm({ defaultCreateType, defaultCreateFrameworkName, onClose }: Props) {
const { currentTenantId } = useContext(TenantsContext);
const { data: currentPlan } = useSubscriptionPlan(currentTenantId);
const isMachineToMachineDisabled = !currentPlan?.quota.machineToMachineLimit;
const isMachineToMachineDisabled = isCloud && !currentPlan?.quota.machineToMachineLimit;
const { updateConfigs } = useConfigs();
const {
handleSubmit,