diff --git a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx index 56cddf6967..d2562f8ee4 100644 --- a/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx +++ b/src/components/Table/hoc/withTableSettings/TableColumnSetup/TableColumnSetup.tsx @@ -8,7 +8,11 @@ import {Button} from '../../../../Button'; import {Icon} from '../../../../Icon'; import type {TreeSelectProps} from '../../../../TreeSelect'; import {DndTreeSelect} from '../../../../TreeSelect/DndTreeSelect'; -import type {DndTreeSelectItem, RenderDndContainer} from '../../../../TreeSelect/DndTreeSelect'; +import type { + DndTreeSelectItem, + DndTreeSelectProps, + RenderDndContainer, +} from '../../../../TreeSelect/DndTreeSelect'; import {block} from '../../../../utils/cn'; import type {TableColumnSetupItem} from '../withTableSettings'; @@ -34,7 +38,7 @@ export interface TableColumnSetupProps { sortable?: boolean; onUpdate: (updated: TableColumnSetupItem[]) => void; - popupWidth?: TreeSelectProps['popupWidth']; + popupWidth?: DndTreeSelectProps['popupWidth']; popupPlacement?: PopperPlacement; } diff --git a/src/components/Table/hoc/withTableSettings/withTableSettings.tsx b/src/components/Table/hoc/withTableSettings/withTableSettings.tsx index ed790316f4..c90809c932 100644 --- a/src/components/Table/hoc/withTableSettings/withTableSettings.tsx +++ b/src/components/Table/hoc/withTableSettings/withTableSettings.tsx @@ -5,6 +5,7 @@ import _get from 'lodash/get'; import _isString from 'lodash/isString'; import _last from 'lodash/last'; +import type {DndTreeSelectProps} from 'src/components/TreeSelect/DndTreeSelect'; import type {PopperPlacement} from 'src/hooks/private'; import {Button} from '../../../Button'; @@ -108,7 +109,7 @@ export function getActualItems( } export interface WithTableSettingsOptions { - width?: number | string; + width?: DndTreeSelectProps['popupWidth']; sortable?: boolean; } @@ -116,7 +117,7 @@ export interface WithTableSettingsProps { /** * @deprecated Use factory notation: "withTableSettings({width: })(Table)" */ - settingsPopupWidth?: number | string; + settingsPopupWidth?: DndTreeSelectProps['popupWidth']; settings: TableSettingsData; updateSettings: (data: TableSettingsData) => void;