mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-26 05:14:29 +08:00
fix: show add credit card modal only for cloud users (#5797)
This commit is contained in:
parent
140533b790
commit
15b0569b56
@ -47,6 +47,7 @@ import {
|
|||||||
UPDATE_LATEST_VERSION_ERROR,
|
UPDATE_LATEST_VERSION_ERROR,
|
||||||
} from 'types/actions/app';
|
} from 'types/actions/app';
|
||||||
import AppReducer from 'types/reducer/app';
|
import AppReducer from 'types/reducer/app';
|
||||||
|
import { isCloudUser } from 'utils/app';
|
||||||
import { getFormattedDate, getRemainingDays } from 'utils/timeUtils';
|
import { getFormattedDate, getRemainingDays } from 'utils/timeUtils';
|
||||||
|
|
||||||
import { ChildrenContainer, Layout, LayoutContent } from './styles';
|
import { ChildrenContainer, Layout, LayoutContent } from './styles';
|
||||||
@ -71,7 +72,14 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
|
|||||||
const isPremiumChatSupportEnabled =
|
const isPremiumChatSupportEnabled =
|
||||||
useFeatureFlags(FeatureKeys.PREMIUM_SUPPORT)?.active || false;
|
useFeatureFlags(FeatureKeys.PREMIUM_SUPPORT)?.active || false;
|
||||||
|
|
||||||
|
const isChatSupportEnabled =
|
||||||
|
useFeatureFlags(FeatureKeys.CHAT_SUPPORT)?.active || false;
|
||||||
|
|
||||||
|
const isCloudUserVal = isCloudUser();
|
||||||
|
|
||||||
const showAddCreditCardModal =
|
const showAddCreditCardModal =
|
||||||
|
isChatSupportEnabled &&
|
||||||
|
isCloudUserVal &&
|
||||||
!isPremiumChatSupportEnabled &&
|
!isPremiumChatSupportEnabled &&
|
||||||
!licenseData?.payload?.trialConvertedToSubscription;
|
!licenseData?.payload?.trialConvertedToSubscription;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user