diff --git a/packages/console/src/components/BillInfo/index.tsx b/packages/console/src/components/BillInfo/index.tsx index de2a7242c..6d453cf40 100644 --- a/packages/console/src/components/BillInfo/index.tsx +++ b/packages/console/src/components/BillInfo/index.tsx @@ -3,6 +3,7 @@ import { Trans, useTranslation } from 'react-i18next'; import Tip from '@/assets/icons/tip.svg?react'; import { addOnPricingExplanationLink } from '@/consts'; +import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider'; import { TenantsContext } from '@/contexts/TenantsProvider'; import Button from '@/ds-components/Button'; import DynamicT from '@/ds-components/DynamicT'; @@ -22,6 +23,9 @@ function BillInfo({ cost, isManagePaymentVisible }: Props) { const { currentTenantId } = useContext(TenantsContext); const { visitManagePaymentPage } = useSubscribe(); const [isLoading, setIsLoading] = useState(false); + const { + currentSubscription: { isEnterprisePlan }, + } = useContext(SubscriptionDataContext); const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); @@ -38,21 +42,23 @@ function BillInfo({ cost, isManagePaymentVisible }: Props) { )} -