Updates release column in table to display a blue label
This commit is contained in:
parent
142674b43b
commit
38b277737e
4 changed files with 23 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import { Form, FormGroup, FormSelect, FormSelectOption, Title } from '@patternfl
|
|||
|
||||
const WizardStepImageOutput = (props) => {
|
||||
const releaseOptions = [
|
||||
{ value: 'rhel-8', label: 'Red Hat Enterprise Linux (RHEL) 8.2' },
|
||||
{ value: 'rhel-8', label: 'Red Hat Enterprise Linux (RHEL) 8.3' },
|
||||
];
|
||||
const uploadOptions = [
|
||||
{ value: 'aws', label: 'Amazon Web Services' },
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import './WizardStepReview.scss';
|
|||
|
||||
const WizardStepReview = (props) => {
|
||||
const releaseOptions = {
|
||||
'rhel-8': 'Red Hat Enterprise Linux (RHEL) 8.2'
|
||||
'rhel-8': 'Red Hat Enterprise Linux (RHEL) 8.3'
|
||||
};
|
||||
const uploadOptions = {
|
||||
aws: 'Amazon Web Services'
|
||||
|
|
@ -30,7 +30,7 @@ const WizardStepReview = (props) => {
|
|||
Release
|
||||
</dt>
|
||||
<dd>
|
||||
{ releaseOptions[props.release]}
|
||||
{ releaseOptions[props.release] }
|
||||
</dd>
|
||||
<dt>
|
||||
Target environment
|
||||
|
|
|
|||
18
src/PresentationalComponents/Release/Release.js
Normal file
18
src/PresentationalComponents/Release/Release.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import { Label } from '@patternfly/react-core';
|
||||
|
||||
const Release = (props) => {
|
||||
const releaseOptions = {
|
||||
'rhel-8': 'RHEL 8.3'
|
||||
};
|
||||
const release = releaseOptions[props.release] ? releaseOptions[props.release] : props.release;
|
||||
return <Label color='blue'>{release}</Label>;
|
||||
};
|
||||
|
||||
Release.propTypes = {
|
||||
release: PropTypes.string,
|
||||
};
|
||||
|
||||
export default Release;
|
||||
Loading…
Add table
Add a link
Reference in a new issue