Updates release column in table to display a blue label

This commit is contained in:
Jenn Giardino 2020-12-15 19:18:42 -05:00 committed by Sanne Raymaekers
parent 142674b43b
commit 38b277737e
4 changed files with 23 additions and 4 deletions

View file

@ -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' },

View file

@ -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

View 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;