diff --git a/.changeset/tame-crabs-breathe.md b/.changeset/tame-crabs-breathe.md new file mode 100644 index 000000000..588c66cf3 --- /dev/null +++ b/.changeset/tame-crabs-breathe.md @@ -0,0 +1,5 @@ +--- +"@logto/console": patch +--- + +Remove the upsell tag on social connectors creation modal in OSS version. diff --git a/packages/console/src/components/CreateConnectorForm/index.tsx b/packages/console/src/components/CreateConnectorForm/index.tsx index dd179d65f..8f9fbab52 100644 --- a/packages/console/src/components/CreateConnectorForm/index.tsx +++ b/packages/console/src/components/CreateConnectorForm/index.tsx @@ -8,6 +8,7 @@ import { useContext, useMemo, useState } from 'react'; import Modal from 'react-modal'; import useSWR from 'swr'; +import { isCloud } from '@/consts/env'; import { TenantsContext } from '@/contexts/TenantsProvider'; import DynamicT from '@/ds-components/DynamicT'; import ModalLayout from '@/ds-components/ModalLayout'; @@ -46,6 +47,7 @@ function CreateConnectorForm({ onClose, isOpen: isFormOpen, type }: Props) { const isCreatingSocialConnector = type === ConnectorType.Social; const { currentTenantId } = useContext(TenantsContext); const { data: currentPlan } = useSubscriptionPlan(currentTenantId); + const isStandardConnectorDisabled = !currentPlan?.quota.standardConnectorsLimit; const groups = useMemo(() => { @@ -160,11 +162,13 @@ function CreateConnectorForm({ onClose, isOpen: isFormOpen, type }: Props) { <>