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:
parent
87607ac894
commit
83022a27b4
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue