add shared DataListCell component

This commit is contained in:
Jake McDermott
2019-06-21 10:15:41 -04:00
parent d8452e1259
commit 22dbe5c0f9
6 changed files with 30 additions and 33 deletions

View File

@@ -8,13 +8,13 @@ import {
DataListItemRow,
DataListItemCells,
DataListCheck,
DataListCell as PFDataListCell,
} from '@patternfly/react-core';
import {
Link
} from 'react-router-dom';
import styled from 'styled-components';
import DataListCell from '@components/DataListCell';
import VerticalSeparator from '@components/VerticalSeparator';
import { Organization } from '@types';
@@ -38,16 +38,6 @@ const ListGroup = styled.span`
}
`;
const DataListCell = styled(PFDataListCell)`
display: flex;
align-items: center;
padding-bottom: ${props => (props.righthalf ? '16px' : '8px')};
@media screen and (min-width: 768px) {
padding-bottom: 0;
}
`;
class OrganizationListItem extends React.Component {
static propTypes = {
organization: Organization.isRequired,