src: Remove pkgRecs flag
Package recommendations are fully deployed to both stage and production. We can remove the flag from the codebase.
This commit is contained in:
parent
1643b96330
commit
83e57baa0b
2 changed files with 3 additions and 8 deletions
|
|
@ -8,10 +8,8 @@ import Packages from './Packages';
|
|||
import { RHEL_8, RHEL_9 } from '../../../../constants';
|
||||
import { useAppSelector } from '../../../../store/hooks';
|
||||
import { selectDistribution } from '../../../../store/wizardSlice';
|
||||
import { useFlag } from '../../../../Utilities/useGetEnvironment';
|
||||
|
||||
const PackagesStep = () => {
|
||||
const packageRecommendationsFlag = useFlag('image-builder.pkgrecs.enabled');
|
||||
const distribution = useAppSelector(selectDistribution);
|
||||
return (
|
||||
<Form>
|
||||
|
|
@ -33,10 +31,9 @@ const PackagesStep = () => {
|
|||
</Alert>
|
||||
)}
|
||||
<Packages />
|
||||
{packageRecommendationsFlag &&
|
||||
(distribution === RHEL_8 || distribution === RHEL_9) && (
|
||||
<PackageRecommendations />
|
||||
)}
|
||||
{(distribution === RHEL_8 || distribution === RHEL_9) && (
|
||||
<PackageRecommendations />
|
||||
)}
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -67,8 +67,6 @@ vi.mock('@unleash/proxy-client-react', () => ({
|
|||
return true;
|
||||
case 'image-builder.wsl.enabled':
|
||||
return true;
|
||||
case 'image-builder.pkgrecs.enabled':
|
||||
return true;
|
||||
case 'image-builder.hostname.enabled':
|
||||
return true;
|
||||
case 'image-builder.kernel.enabled':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue