Skip to content

Commit

Permalink
Merge pull request #3899 from project-koku/release_prod-stable.30225
Browse files Browse the repository at this point in the history
Deployment commit for prod-stable
  • Loading branch information
dlabrecq authored Jun 17, 2024
2 parents 3573cd6 + 32c5a48 commit 380c7bd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/featureToggle/featureToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 380c7bd

Please sign in to comment.