chore: Deprecate DND feature flags (#23981)

This commit is contained in:
Kamil Gabryjelski
2023-05-10 17:13:03 +02:00
committed by GitHub
parent 7fb8b38cdf
commit 7757b61c22
13 changed files with 55 additions and 95 deletions

View File

@@ -35,14 +35,14 @@ import { DndItemType } from '../../DndItemType';
export type DndSelectLabelProps = {
name: string;
accept: DndItemType | DndItemType[];
ghostButtonText?: string;
ghostButtonText: string;
onDrop: (item: DatasourcePanelDndItem) => void;
canDrop: (item: DatasourcePanelDndItem) => boolean;
canDropValue?: (value: DndItemValue) => boolean;
onDropValue?: (value: DndItemValue) => void;
valuesRenderer: () => ReactNode;
displayGhostButton?: boolean;
onClickGhostButton?: () => void;
onClickGhostButton: () => void;
};
export default function DndSelectLabel({
@@ -80,7 +80,7 @@ export default function DndSelectLabel({
onClick={props.onClickGhostButton}
>
<Icons.PlusSmall iconColor={theme.colors.grayscale.light1} />
{t(props.ghostButtonText || 'Drop columns here')}
{t(props.ghostButtonText)}
</AddControlLabel>
);
}