From 9fd4496c047a066ee945d66ed19e4f147c2b7112 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 21 Jun 2024 14:51:14 -0600 Subject: [PATCH] simplifying --- superset-frontend/src/components/Select/Select.tsx | 4 +--- superset-frontend/src/components/Select/constants.ts | 2 +- superset-frontend/src/components/Select/styles.tsx | 2 +- superset-frontend/src/components/Select/types.ts | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/superset-frontend/src/components/Select/Select.tsx b/superset-frontend/src/components/Select/Select.tsx index 228de1e47f431..9356880ba8a35 100644 --- a/superset-frontend/src/components/Select/Select.tsx +++ b/superset-frontend/src/components/Select/Select.tsx @@ -35,9 +35,7 @@ import { t, usePrevious, } from '@superset-ui/core'; -import AntdSelect, { - LabeledValue as AntdLabeledValue, -} from 'antd-next/lib/select'; +import AntdSelect, { LabeledValue as AntdLabeledValue } from 'antd/lib/select'; import { debounce, isEqual, uniq } from 'lodash'; import { FAST_DEBOUNCE } from 'src/constants'; import { diff --git a/superset-frontend/src/components/Select/constants.ts b/superset-frontend/src/components/Select/constants.ts index b8566bd8f8e3d..63218d9b712ed 100644 --- a/superset-frontend/src/components/Select/constants.ts +++ b/superset-frontend/src/components/Select/constants.ts @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import { LabeledValue as AntdLabeledValue } from 'antd-next/lib/select'; +import { LabeledValue as AntdLabeledValue } from 'antd/lib/select'; import { rankedSearchCompare } from 'src/utils/rankedSearchCompare'; export const MAX_TAG_COUNT = 4; diff --git a/superset-frontend/src/components/Select/styles.tsx b/superset-frontend/src/components/Select/styles.tsx index 51338bf929adc..92407f3cf6b31 100644 --- a/superset-frontend/src/components/Select/styles.tsx +++ b/superset-frontend/src/components/Select/styles.tsx @@ -19,7 +19,7 @@ import { styled } from '@superset-ui/core'; import Icons from 'src/components/Icons'; import { Spin, Tag } from 'antd-next'; -import AntdSelect from 'antd-next/lib/select'; +import AntdSelect from 'antd/lib/select'; export const StyledHeader = styled.span<{ headerPosition: string }>` ${({ theme, headerPosition }) => ` diff --git a/superset-frontend/src/components/Select/types.ts b/superset-frontend/src/components/Select/types.ts index 3f0f96319365c..e8a1ee82486b2 100644 --- a/superset-frontend/src/components/Select/types.ts +++ b/superset-frontend/src/components/Select/types.ts @@ -26,8 +26,8 @@ import { SelectProps as AntdSelectProps, SelectValue as AntdSelectValue, LabeledValue as AntdLabeledValue, -} from 'antd-next/lib/select'; -import { TagProps } from 'antd-next/lib/tag'; +} from 'antd/lib/select'; +import { TagProps } from 'antd/lib/tag'; export type RawValue = string | number;