From 9acf45cd1b3e9c055121feee3fcd82a716502bd3 Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Thu, 20 Apr 2023 23:10:12 +0530 Subject: [PATCH] Changed the remove tier button (#11159) --- .../resources/ui/src/assets/svg/ic-remove.svg | 11 +++++- .../CardListItem/CardWithListItem.tsx | 36 +++++++++---------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/ic-remove.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/ic-remove.svg index 2955099650a..0d872c626f8 100644 --- a/openmetadata-ui/src/main/resources/ui/src/assets/svg/ic-remove.svg +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/ic-remove.svg @@ -1 +1,10 @@ - \ No newline at end of file + + + + + + + + + + diff --git a/openmetadata-ui/src/main/resources/ui/src/components/cardlist/CardListItem/CardWithListItem.tsx b/openmetadata-ui/src/main/resources/ui/src/components/cardlist/CardListItem/CardWithListItem.tsx index e95b194b572..e15d252ed83 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/cardlist/CardListItem/CardWithListItem.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/cardlist/CardListItem/CardWithListItem.tsx @@ -11,15 +11,13 @@ * limitations under the License. */ -import { - CheckCircleOutlined, - DownOutlined, - RightOutlined, -} from '@ant-design/icons'; -import { Button, Space } from 'antd'; +import { DownOutlined, RightOutlined } from '@ant-design/icons'; +import Icon from '@ant-design/icons/lib/components/Icon'; +import { Button } from 'antd'; import classNames from 'classnames'; import { t } from 'i18next'; import React, { FunctionComponent } from 'react'; +import { ReactComponent as IconRemove } from '../../../assets/svg/ic-remove.svg'; import RichTextEditorPreviewer from '../../common/rich-text-editor/RichTextEditorPreviewer'; import Loader from '../../Loader/Loader'; import { Props } from './CardWithListItem.interface'; @@ -63,7 +61,14 @@ const CardListItem: FunctionComponent = ({ ); case 'success': - return ; + return ( + + ); default: return ( @@ -81,17 +86,12 @@ const CardListItem: FunctionComponent = ({ const getCardIcon = (cardId: string) => { if (isSelected || (isSelected && isActive)) { return ( - - - - + ); } else if (isActive) { return getTierSelectButton(cardId);