From 7f89251dc931d8bd9d7fe2cbad291ebe08271b6d Mon Sep 17 00:00:00 2001 From: Daniel Benjamin Date: Fri, 13 Oct 2023 18:55:37 +0100 Subject: [PATCH] chore: Remove gh-form and LegacyForms from InfluxFluxConfig (#76495) * chore: replace SecretFormField with SecretInput * chore: Remove gh-form and LegacyForms from InfluxFluxConfig --- .../editor/config/InfluxFluxConfig.tsx | 97 ++++++++----------- 1 file changed, 42 insertions(+), 55 deletions(-) diff --git a/public/app/plugins/datasource/influxdb/components/editor/config/InfluxFluxConfig.tsx b/public/app/plugins/datasource/influxdb/components/editor/config/InfluxFluxConfig.tsx index 7aad0b0aed5..dd28a7c73b3 100644 --- a/public/app/plugins/datasource/influxdb/components/editor/config/InfluxFluxConfig.tsx +++ b/public/app/plugins/datasource/influxdb/components/editor/config/InfluxFluxConfig.tsx @@ -7,11 +7,11 @@ import { onUpdateDatasourceSecureJsonDataOption, updateDatasourcePluginResetOption, } from '@grafana/data'; -import { InlineFormLabel, LegacyForms } from '@grafana/ui'; +import { InlineField, InlineFieldRow, Input, SecretInput } from '@grafana/ui'; import { InfluxOptions, InfluxSecureJsonData } from '../../../types'; -const { Input, SecretFormField } = LegacyForms; +const WIDTH_SHORT = 20; export type Props = DataSourcePluginOptionsEditorProps; @@ -23,68 +23,55 @@ export const InfluxFluxConfig = (props: Props) => { return ( <> -
-
- - Organization - -
- -
-
-
-
-
- + + + + + + + updateDatasourcePluginResetOption(props, 'token')} onChange={onUpdateDatasourceSecureJsonDataOption(props, 'token')} /> -
-
-
-
- Default Bucket -
- -
-
-
+ + + + + + + -
-
- - Min time interval - -
- -
-
-
+ > + + + ); };