Skip to content

Commit

Permalink
chore: reduce popupWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor committed Feb 9, 2024
1 parent 3505af3 commit ce6f78e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -34,7 +38,7 @@ export interface TableColumnSetupProps {
sortable?: boolean;

onUpdate: (updated: TableColumnSetupItem[]) => void;
popupWidth?: TreeSelectProps<unknown>['popupWidth'];
popupWidth?: DndTreeSelectProps<any>['popupWidth'];
popupPlacement?: PopperPlacement;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -108,15 +109,15 @@ export function getActualItems<I>(
}

export interface WithTableSettingsOptions {
width?: number | string;
width?: DndTreeSelectProps<any>['popupWidth'];
sortable?: boolean;
}

export interface WithTableSettingsProps {
/**
* @deprecated Use factory notation: "withTableSettings({width: <value>})(Table)"
*/
settingsPopupWidth?: number | string;
settingsPopupWidth?: DndTreeSelectProps<any>['popupWidth'];

settings: TableSettingsData;
updateSettings: (data: TableSettingsData) => void;
Expand Down

0 comments on commit ce6f78e

Please sign in to comment.