diff --git a/superset-frontend/src/components/Icons/AntdEnhanced.tsx b/superset-frontend/src/components/Icons/AntdEnhanced.tsx index 6d72e002510c..484e8ce6e37a 100644 --- a/superset-frontend/src/components/Icons/AntdEnhanced.tsx +++ b/superset-frontend/src/components/Icons/AntdEnhanced.tsx @@ -23,6 +23,7 @@ import { StyledIcon } from './Icon'; import IconType from './IconType'; const AntdEnhancedIcons = Object.keys(AntdIcons) + .filter(k => !k.includes('TwoTone')) .map(k => ({ [k]: (props: IconType) => ( diff --git a/superset-frontend/src/components/Icons/IconType.ts b/superset-frontend/src/components/Icons/IconType.ts index 7371007bf2bc..41a4089e126a 100644 --- a/superset-frontend/src/components/Icons/IconType.ts +++ b/superset-frontend/src/components/Icons/IconType.ts @@ -21,7 +21,6 @@ import { IconComponentProps } from '@ant-design/icons/lib/components/Icon'; type AntdIconType = IconComponentProps; type IconType = AntdIconType & { iconColor?: string; - twoToneColor?: string; iconSize?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'; }; diff --git a/superset-frontend/src/components/Icons/Icons.stories.tsx b/superset-frontend/src/components/Icons/Icons.stories.tsx index e2a3944eb4f1..2012bd9b5003 100644 --- a/superset-frontend/src/components/Icons/Icons.stories.tsx +++ b/superset-frontend/src/components/Icons/Icons.stories.tsx @@ -78,11 +78,6 @@ InteractiveIcons.argTypes = { defaultValue: null, control: { type: 'select', options: palette }, }, - // @TODO twoToneColor is being ignored - twoToneColor: { - defaultValue: null, - control: { type: 'select', options: palette }, - }, theme: { table: { disable: true,