mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
Revert "Use V flag for new metrics component"
This reverts commit 566539727d
.
This commit is contained in:
parent
566539727d
commit
3f7e43c599
@ -12,11 +12,11 @@ const FeatureMetrics = () => {
|
||||
const { projectId, featureId } = useParams<IFeatureViewParams>();
|
||||
const { feature } = useFeature(projectId, featureId);
|
||||
const { uiConfig } = useUiConfig();
|
||||
const isNewMetricsEnabled = uiConfig.flags.V;
|
||||
const isEnterprise = uiConfig.flags.E;
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<ConditionallyRender condition={isNewMetricsEnabled}
|
||||
<ConditionallyRender condition={isEnterprise}
|
||||
show={<EnvironmentMetricComponent />}
|
||||
elseShow={<MetricComponent featureToggle={feature} />}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user