From 8e82231b1c2ca8156f37e8640208d4ee6f4f3fc6 Mon Sep 17 00:00:00 2001 From: el-makarova Date: Wed, 22 Nov 2023 13:07:05 +0300 Subject: [PATCH] feat(Table): use uikit icons --- .../TableColumnSetup/LockIcon.tsx | 19 ------------------- .../TableColumnSetup/TableColumnSetup.tsx | 8 +++----- .../TableColumnSetup/TickIcon.tsx | 19 ------------------- 3 files changed, 3 insertions(+), 43 deletions(-) delete mode 100644 src/components/Table/hoc/withTableSettings/TableColumnSetup/LockIcon.tsx delete mode 100644 src/components/Table/hoc/withTableSettings/TableColumnSetup/TickIcon.tsx diff --git a/src/components/Table/hoc/withTableSettings/TableColumnSetup/LockIcon.tsx b/src/components/Table/hoc/withTableSettings/TableColumnSetup/LockIcon.tsx deleted file mode 100644 index 7e7812fd16..0000000000 --- a/src/components/Table/hoc/withTableSettings/TableColumnSetup/LockIcon.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from 'react'; - -import {a11yHiddenSvgProps} from '../../../../utils/svg'; - -export function LockIcon(props: React.SVGProps) { - return ( - - - - ); -} diff --git a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx index 5efdae28e2..c1ab6beb45 100644 --- a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx +++ b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import {Gear} from '@gravity-ui/icons'; +import {Check, Gear, Lock} from '@gravity-ui/icons'; import type {PopperPlacement} from '../../../../../components/utils/usePopper'; import {useActionHandlers} from '../../../../../hooks/useActionHandlers'; @@ -11,8 +11,6 @@ import {Popup} from '../../../../Popup'; import {block} from '../../../../utils/cn'; import type {TableColumnSetupItem} from '../withTableSettings'; -import {LockIcon} from './LockIcon'; -import {TickIcon} from './TickIcon'; import i18n from './i18n'; import './TableColumnSetup.scss'; @@ -146,11 +144,11 @@ export const TableColumnSetup = (props: TableColumnSetupProps) => {
{item.required ? (
- +
) : (
- +
)}
{getItemTitle(item)}
diff --git a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TickIcon.tsx b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TickIcon.tsx deleted file mode 100644 index 4a68b16402..0000000000 --- a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TickIcon.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from 'react'; - -import {a11yHiddenSvgProps} from '../../../../utils/svg'; - -export function TickIcon(props: React.SVGProps) { - return ( - - - - ); -}