From 18e63ae6da82e5c91a566e1644e338fdc1b22742 Mon Sep 17 00:00:00 2001 From: nixocio Date: Fri, 25 Jun 2021 13:47:40 -0400 Subject: [PATCH] Remove custom component Remove custom component since PF issue is now fixed. See: https://github.com/ansible/awx/issues/6351 --- .../src/components/DataListCell/DataListCell.jsx | 12 ------------ awx/ui_next/src/components/DataListCell/index.js | 1 - .../src/screens/Template/Survey/SurveyListItem.jsx | 2 +- 3 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 awx/ui_next/src/components/DataListCell/DataListCell.jsx delete mode 100644 awx/ui_next/src/components/DataListCell/index.js diff --git a/awx/ui_next/src/components/DataListCell/DataListCell.jsx b/awx/ui_next/src/components/DataListCell/DataListCell.jsx deleted file mode 100644 index 79aff02595..0000000000 --- a/awx/ui_next/src/components/DataListCell/DataListCell.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import { DataListCell as PFDataListCell } from '@patternfly/react-core'; -import styled from 'styled-components'; - -PFDataListCell.displayName = 'PFDataListCell'; -// Once https://github.com/patternfly/patternfly-react/issues/3938 -// has been resolved this component can be removed -const DataListCell = styled(PFDataListCell)` - word-break: break-word; -`; -DataListCell.displayName = 'DataListCell'; - -export default DataListCell; diff --git a/awx/ui_next/src/components/DataListCell/index.js b/awx/ui_next/src/components/DataListCell/index.js deleted file mode 100644 index d925b63c7d..0000000000 --- a/awx/ui_next/src/components/DataListCell/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from './DataListCell'; diff --git a/awx/ui_next/src/screens/Template/Survey/SurveyListItem.jsx b/awx/ui_next/src/screens/Template/Survey/SurveyListItem.jsx index 6626ff73cd..c82bb795f0 100644 --- a/awx/ui_next/src/screens/Template/Survey/SurveyListItem.jsx +++ b/awx/ui_next/src/screens/Template/Survey/SurveyListItem.jsx @@ -7,6 +7,7 @@ import { Button as _Button, Chip, DataListAction as _DataListAction, + DataListCell, DataListCheck, DataListItemCells, DataListItemRow, @@ -16,7 +17,6 @@ import { } from '@patternfly/react-core'; import { CaretDownIcon, CaretUpIcon } from '@patternfly/react-icons'; import styled from 'styled-components'; -import DataListCell from '../../../components/DataListCell'; import ChipGroup from '../../../components/ChipGroup'; const DataListAction = styled(_DataListAction)`