Components: Remove BetaLabel widget
This widget feels superfluous because we only show it for features that are available in ConsoleDot's 'Preview' environment.
This commit is contained in:
parent
e6b030ea4c
commit
3169301aa1
4 changed files with 1 additions and 26 deletions
|
|
@ -16,7 +16,6 @@ import {
|
|||
useLazyExportBlueprintQuery,
|
||||
} from '../../store/imageBuilderApi';
|
||||
import { useFlagWithEphemDefault } from '../../Utilities/useGetEnvironment';
|
||||
import BetaLabel from '../sharedComponents/BetaLabel';
|
||||
|
||||
interface BlueprintActionsMenuProps {
|
||||
setShowDeleteModal: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
|
|
@ -70,7 +69,7 @@ export const BlueprintActionsMenu: React.FunctionComponent<
|
|||
<DropdownList>
|
||||
{importExportFlag && (
|
||||
<DropdownItem onClick={handleClick}>
|
||||
Download blueprint (.json) <BetaLabel />
|
||||
Download blueprint (.json)
|
||||
</DropdownItem>
|
||||
)}
|
||||
<DropdownItem onClick={() => setShowDeleteModal(true)}>
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
.beta-label {
|
||||
--pf-c-label--BackgroundColor: var(--pf-v5-global--palette--green-300);
|
||||
--pf-c-label__content--before--BorderColor: var(--pf-v5-global--palette--green-300);
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Label } from '@patternfly/react-core';
|
||||
|
||||
import './BetaLabel.scss';
|
||||
|
||||
const BetaLabel = () => {
|
||||
return (
|
||||
<Label className="beta-label">
|
||||
<b>Preview</b>
|
||||
</Label>
|
||||
);
|
||||
};
|
||||
|
||||
export default BetaLabel;
|
||||
|
|
@ -17,8 +17,6 @@ import {
|
|||
} from '@redhat-cloud-services/frontend-components';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
import BetaLabel from './BetaLabel';
|
||||
|
||||
import {
|
||||
CREATE_RHEL_IMAGES_WITH_AUTOMATED_MANAGEMENT_URL,
|
||||
CREATING_IMAGES_WITH_IB_SERVICE_URL,
|
||||
|
|
@ -151,8 +149,6 @@ export const ImageBuilderHeader = ({
|
|||
<Button
|
||||
data-testid="import-blueprint-button"
|
||||
variant="secondary"
|
||||
icon={<BetaLabel />}
|
||||
iconPosition="end"
|
||||
onClick={() => setShowImportModal(true)}
|
||||
isDisabled={!isOnBlueprintsTab}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue