From 48bccebb50128428991c969dff9f5357fe3e038c Mon Sep 17 00:00:00 2001 From: Dan Labrecque Date: Mon, 17 Jun 2024 15:03:16 -0400 Subject: [PATCH] The cost-management.ui.ros Unleash toggle now uses the platform.chrome.ui.preview constraint instead of isBeta --- src/components/featureToggle/featureToggle.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/featureToggle/featureToggle.tsx b/src/components/featureToggle/featureToggle.tsx index b0bc08853..a180aec65 100644 --- a/src/components/featureToggle/featureToggle.tsx +++ b/src/components/featureToggle/featureToggle.tsx @@ -14,7 +14,6 @@ export const enum FeatureToggle { ocpCloudNetworking = 'cost-management.ui.ocp-cloud-networking', // https://issues.redhat.com/browse/COST-4781 ocpProjectStorage = 'cost-management.ui.ocp-project-storage', // https://issues.redhat.com/browse/COST-4856 ros = 'cost-management.ui.ros', // ROS support https://issues.redhat.com/browse/COST-3477 - rosPreview = 'cost-management.ui.ros-preview', // ROS support https://issues.redhat.com/browse/COST-3477 } const useIsToggleEnabled = (toggle: FeatureToggle) => { @@ -51,10 +50,7 @@ export const useIsOcpProjectStorageToggleEnabled = () => { }; export const useIsRosToggleEnabled = () => { - const { isBeta } = useChrome(); - const isRosToggleEnabled = useIsToggleEnabled(FeatureToggle.ros); - const isRosFeaturePreviewEnabled = useIsToggleEnabled(FeatureToggle.rosPreview) && isBeta(); // Enabled for prod-beta - return isRosToggleEnabled || isRosFeaturePreviewEnabled; + return useIsToggleEnabled(FeatureToggle.ros); }; // The FeatureToggle component saves feature toggles in store for places where Unleash hooks not available