Skip to content

Commit

Permalink
simplifying
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas committed Jun 21, 2024
1 parent 3718af5 commit 9fd4496
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions superset-frontend/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/components/Select/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/components/Select/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => `
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/components/Select/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9fd4496

Please sign in to comment.