webpack/scenes/AlternateContentSources/Create/Steps/SelectSource.js in katello-4.5.1 vs webpack/scenes/AlternateContentSources/Create/Steps/SelectSource.js in katello-4.6.0.rc1
- old
+ new
@@ -1,16 +1,8 @@
import React, { useContext } from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
-import {
- Tile,
- Flex,
- FlexItem,
- Form,
- FormGroup,
- FormSelect,
- FormSelectOption,
-} from '@patternfly/react-core';
+import { Flex, FlexItem, Form, FormGroup, FormSelect, FormSelectOption, Tile } from '@patternfly/react-core';
import ACSCreateContext from '../ACSCreateContext';
import WizardHeader from '../../../ContentViews/components/WizardHeader';
const SelectSource = () => {
const {
@@ -45,29 +37,53 @@
fieldId="source_type"
isRequired
>
<Flex>
<FlexItem>
- <Tile title={__('Custom')} isStacked id="custom" onClick={onSelect} onKeyDown={onKeyDown} isSelected={acsType === 'custom'} />{' '}
+ <Tile
+ title={__('Custom')}
+ isStacked
+ id="custom"
+ onClick={onSelect}
+ onKeyDown={onKeyDown}
+ isSelected={acsType === 'custom'}
+ />{' '}
</FlexItem>
+ <FlexItem>
+ <Tile
+ title={__('Simplified')}
+ isStacked
+ id="simplified"
+ onClick={onSelect}
+ onKeyDown={onKeyDown}
+ isSelected={acsType === 'simplified'}
+ />{' '}
+ </FlexItem>
</Flex>
</FormGroup>
<FormGroup
label={__('Content type')}
type="string"
fieldId="content_type"
isRequired
>
- <FormSelect isRequired value={contentType} onChange={(value) => { setContentType(value); }} aria-label="FormSelect Input">
+ <FormSelect
+ isRequired
+ value={contentType}
+ onChange={(value) => {
+ setContentType(value);
+ }}
+ aria-label="FormSelect Input"
+ >
{
- typeOptions.map(option => (
- <FormSelectOption
- key={option.value}
- value={option.value}
- label={option.label}
- />
- ))
- }
+ typeOptions.map(option => (
+ <FormSelectOption
+ key={option.value}
+ value={option.value}
+ label={option.label}
+ />
+ ))
+ }
</FormSelect>
</FormGroup>
</Form>
</>
);