Update org edit form layout and remove chip group component from lookup;

This commit is contained in:
Marliana Lara
2019-02-25 09:15:21 -05:00
parent c3fc00c45a
commit ff339e0eba
2 changed files with 41 additions and 48 deletions

View File

@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import { SearchIcon, CubesIcon } from '@patternfly/react-icons';
import {
Chip,
ChipGroup,
Modal,
Button,
EmptyState,
@@ -150,18 +149,15 @@ class Lookup extends React.Component {
} = this.state;
const { lookupHeader = 'items', value, columns } = this.props;
let chips = null;
if (value) {
chips = (
<ChipGroup>
{value.map(chip => (
<Chip key={chip.id} onClick={() => this.toggleSelected(chip)}>
{chip.name}
</Chip>
))}
</ChipGroup>
);
}
const chips = value ? (
<div className="pf-c-chip-group">
{value.map(chip => (
<Chip key={chip.id} onClick={() => this.toggleSelected(chip)}>
{chip.name}
</Chip>
))}
</div>
) : null;
return (
<I18n>