CreateImageWizard: rename google to gcp in form state

This commit is contained in:
Jacob Kozol 2022-03-07 15:51:48 +01:00 committed by jkozol
parent a16244edaa
commit 7aaedd67ab
4 changed files with 6 additions and 6 deletions

View file

@ -129,7 +129,7 @@ const ReviewStep = () => {
</TextContent>
</ListItem>
}
{getState()?.values?.['target-environment']?.google &&
{getState()?.values?.['target-environment']?.gcp &&
<ListItem
className='pf-c-list__item pf-u-mt-md'
icon={ <img className='provider-icon' src='/apps/frontend-assets/partners-icons/google-cloud-short.svg' /> }>

View file

@ -11,7 +11,7 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
const [ environment, setEnvironment ] = useState({
aws: false,
azure: false,
google: false,
gcp: false,
vsphere: false,
'guest-image': false,
'image-installer': false,
@ -55,8 +55,8 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
icon={ <img
className='provider-icon'
src={ '/apps/frontend-assets/partners-icons/google-cloud-short.svg' } /> }
onClick={ () => handleSetEnvironment('google') }
isSelected={ environment.google }
onClick={ () => handleSetEnvironment('gcp') }
isSelected={ environment.gcp }
isStacked
isDisplayLarge />
<Tile