feat: Implement drag and drop for metrics (#13575)

* Convert MetricsControl to functional component

* Implement drag and drop for metrics

* Implement customizable placeholder for DndSelectLabel
This commit is contained in:
Kamil Gabryjelski
2021-03-12 05:31:17 +01:00
committed by GitHub
parent 1b95ed7267
commit d439da2fe0
9 changed files with 357 additions and 38 deletions

View File

@@ -55,7 +55,7 @@ export default function DndSelectLabel<T, O>(
return (
<AddControlLabel cancelHover>
<Icon name="plus-small" color={theme.colors.grayscale.light1} />
{t('Drop Columns')}
{t(props.placeholderText || 'Drop columns')}
</AddControlLabel>
);
}