From 9b27d5a0c18df8ba5a367c797d0af67b62d03f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Fern=C3=A1ndez?= Date: Wed, 17 Apr 2024 11:50:58 +0200 Subject: [PATCH] Chore: `DataSourcePicker`- Replace `HorizontalGroup` with `Stack` (#86389) --- .betterer.results | 3 --- .../grafana-runtime/src/components/DataSourcePicker.tsx | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.betterer.results b/.betterer.results index 12f79bf3cca..f5c2aa07c1d 100644 --- a/.betterer.results +++ b/.betterer.results @@ -697,9 +697,6 @@ exports[`better eslint`] = { "packages/grafana-runtime/src/analytics/types.ts:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"] ], - "packages/grafana-runtime/src/components/DataSourcePicker.tsx:5381": [ - [0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"] - ], "packages/grafana-runtime/src/config.ts:5381": [ [0, 0, 0, "Do not use any type assertions.", "0"], [0, 0, 0, "Do not use any type assertions.", "1"], diff --git a/packages/grafana-runtime/src/components/DataSourcePicker.tsx b/packages/grafana-runtime/src/components/DataSourcePicker.tsx index b53e83f124d..442bb2ad45d 100644 --- a/packages/grafana-runtime/src/components/DataSourcePicker.tsx +++ b/packages/grafana-runtime/src/components/DataSourcePicker.tsx @@ -10,7 +10,7 @@ import { SelectableValue, } from '@grafana/data'; import { selectors } from '@grafana/e2e-selectors'; -import { ActionMeta, HorizontalGroup, PluginSignatureBadge, Select } from '@grafana/ui'; +import { ActionMeta, PluginSignatureBadge, Select, Stack } from '@grafana/ui'; import { getDataSourceSrv } from '../services/dataSourceSrv'; @@ -209,9 +209,9 @@ export class DataSourcePicker extends PureComponent { if (o.meta && isUnsignedPluginSignature(o.meta.signature) && o !== value) { return ( - + {o.label} - + ); } return o.label || '';