diff --git a/eslint-suppressions.json b/eslint-suppressions.json index cdbeabcc87b..dfa69ae64f4 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -2397,11 +2397,6 @@ "count": 1 } }, - "public/app/features/datasources/components/DataSourceLoadError.tsx": { - "no-restricted-syntax": { - "count": 1 - } - }, "public/app/features/datasources/components/DataSourcePluginState.tsx": { "no-restricted-syntax": { "count": 3 diff --git a/public/app/features/datasources/components/DataSourceLoadError.tsx b/public/app/features/datasources/components/DataSourceLoadError.tsx index 10dee3f85b6..ea6b393d0b3 100644 --- a/public/app/features/datasources/components/DataSourceLoadError.tsx +++ b/public/app/features/datasources/components/DataSourceLoadError.tsx @@ -1,5 +1,5 @@ import { t, Trans } from '@grafana/i18n'; -import { Button, EmptyState } from '@grafana/ui'; +import { Button, EmptyState, Stack } from '@grafana/ui'; import { DataSourceRights } from '../types'; @@ -19,24 +19,27 @@ export function DataSourceLoadError({ dataSourceRights, onDelete, notFound }: Pr return ( <> {readOnly && } + + + {notFound && ( + + )} + + + {canDelete && ( + + )} -
- {notFound && ( - - )} - {canDelete && ( - - )} - - -
+
+
); }