mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
[Remix] Cleaning up stale feature flag: proPlanAutoCharge with value true (#6581)
This commit is contained in:
parent
d1d04fdeb9
commit
3d4aa4abcb
@ -154,8 +154,7 @@ export const BillingPlan: FC<IBillingPlanProps> = ({ instanceStatus }) => {
|
||||
</Grid>
|
||||
<ConditionallyRender
|
||||
condition={Boolean(
|
||||
uiConfig?.flags?.proPlanAutoCharge &&
|
||||
instanceStatus.plan === InstancePlan.PRO,
|
||||
instanceStatus.plan === InstancePlan.PRO,
|
||||
)}
|
||||
show={
|
||||
<>
|
||||
|
@ -16,7 +16,7 @@ import TopicOutlinedIcon from '@mui/icons-material/TopicOutlined';
|
||||
import { Badge } from '../common/Badge/Badge';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
||||
import React, { useEffect } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
import { useFeedback } from '../feedbackNew/useFeedback';
|
||||
import ReviewsOutlined from '@mui/icons-material/ReviewsOutlined';
|
||||
|
||||
|
@ -15,10 +15,7 @@ export const useUsersPlan = (users: IUser[]): IUsersPlanOutput => {
|
||||
const { instanceStatus } = useInstanceStatus();
|
||||
const { uiConfig } = useUiConfig();
|
||||
|
||||
const isBillingUsers = Boolean(
|
||||
uiConfig?.flags?.proPlanAutoCharge &&
|
||||
instanceStatus?.plan === InstancePlan.PRO,
|
||||
);
|
||||
const isBillingUsers = Boolean(instanceStatus?.plan === InstancePlan.PRO);
|
||||
const seats = instanceStatus?.seats ?? 5;
|
||||
|
||||
const planUsers = useMemo(
|
||||
|
@ -51,7 +51,6 @@ export type UiFlags = {
|
||||
banner?: Variant;
|
||||
featuresExportImport?: boolean;
|
||||
caseInsensitiveInOperators?: boolean;
|
||||
proPlanAutoCharge?: boolean;
|
||||
notifications?: boolean;
|
||||
personalAccessTokensKillSwitch?: boolean;
|
||||
demo?: boolean;
|
||||
|
@ -132,7 +132,6 @@ exports[`should create default config 1`] = `
|
||||
"newStrategyConfigurationFeedback": false,
|
||||
"outdatedSdksBanner": false,
|
||||
"personalAccessTokensKillSwitch": false,
|
||||
"proPlanAutoCharge": false,
|
||||
"queryMissingTokens": false,
|
||||
"responseTimeMetricsFix": false,
|
||||
"responseTimeWithAppNameKillSwitch": false,
|
||||
|
@ -16,7 +16,6 @@ export type IFlagKey =
|
||||
| 'featuresExportImport'
|
||||
| 'caseInsensitiveInOperators'
|
||||
| 'strictSchemaValidation'
|
||||
| 'proPlanAutoCharge'
|
||||
| 'personalAccessTokensKillSwitch'
|
||||
| 'migrationLock'
|
||||
| 'demo'
|
||||
@ -104,10 +103,6 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_STRICT_SCHEMA_VALIDTION,
|
||||
false,
|
||||
),
|
||||
proPlanAutoCharge: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_PRO_PLAN_AUTO_CHARGE,
|
||||
false,
|
||||
),
|
||||
personalAccessTokensKillSwitch: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_PAT_KILL_SWITCH,
|
||||
false,
|
||||
|
Loading…
Reference in New Issue
Block a user