Wizard: move RHEL 9 beta out of preview

This commit is contained in:
Sanne Raymaekers 2024-10-17 10:24:51 +02:00 committed by Simon Steinbeiß
parent c9e5f9630b
commit 15a7115eec

View file

@ -25,7 +25,6 @@ import {
} from '../../../../store/wizardSlice'; } from '../../../../store/wizardSlice';
import isRhel from '../../../../Utilities/isRhel'; import isRhel from '../../../../Utilities/isRhel';
import { toMonthAndYear } from '../../../../Utilities/time'; import { toMonthAndYear } from '../../../../Utilities/time';
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
const ReleaseSelect = () => { const ReleaseSelect = () => {
// What the UI refers to as the "release" is referred to as the "distribution" in the API. // What the UI refers to as the "release" is referred to as the "distribution" in the API.
@ -35,7 +34,6 @@ const ReleaseSelect = () => {
const dispatch = useAppDispatch(); const dispatch = useAppDispatch();
const [isOpen, setIsOpen] = useState(false); const [isOpen, setIsOpen] = useState(false);
const [showDevelopmentOptions, setShowDevelopmentOptions] = useState(false); const [showDevelopmentOptions, setShowDevelopmentOptions] = useState(false);
const { isBeta } = useGetEnvironment();
const handleSelect = (_event: React.MouseEvent, selection: Distributions) => { const handleSelect = (_event: React.MouseEvent, selection: Distributions) => {
dispatch(changeDistribution(selection)); dispatch(changeDistribution(selection));
@ -82,11 +80,6 @@ const ReleaseSelect = () => {
); );
filteredRhel.forEach((value, key) => { filteredRhel.forEach((value, key) => {
// Only show RHEL 9 beta in preview
if (key === RHEL_9_BETA && !isBeta()) {
return;
}
options.push( options.push(
<SelectOption <SelectOption
key={value} key={value}