@@ -3,8 +3,8 @@ import { SIGV4ConnectionConfig } from '@grafana/aws-sdk';
3
3
import { DataSourcePluginOptionsEditorProps , GrafanaTheme2 } from '@grafana/data' ;
4
4
import { ConfigSection , DataSourceDescription } from '@grafana/experimental' ;
5
5
import { config } from '@grafana/runtime' ;
6
- import { Alert , DataSourceHttpSettings , FieldValidationMessage , useTheme2 } from '@grafana/ui' ;
7
- import React , { useRef } from 'react' ;
6
+ import { Alert , FieldValidationMessage , useTheme2 } from '@grafana/ui' ;
7
+ import React from 'react' ;
8
8
9
9
import { PromOptions } from '../types' ;
10
10
@@ -13,7 +13,6 @@ import { DataSourcehttpSettingsOverhaul } from './DataSourceHttpSettingsOverhaul
13
13
import { PromSettings } from './PromSettings' ;
14
14
import { AdvancedHttpSettings } from './overhaul/AdvancedHttpSettings' ;
15
15
16
-
17
16
export const PROM_CONFIG_LABEL_WIDTH = 30 ;
18
17
19
18
export type Props = DataSourcePluginOptionsEditorProps < PromOptions > ;
@@ -29,7 +28,7 @@ export const ConfigEditor = (props: Props) => {
29
28
< Alert title = "Error" severity = "error" >
30
29
Browser access mode in the Prometheus data source is no longer available. Switch to server access mode.
31
30
</ Alert >
32
- ) }
31
+ ) }
33
32
< DataSourceDescription
34
33
dataSourceName = "Prometheus"
35
34
docsLink = "https://grafana.com/docs/grafana/latest/datasources/prometheus/configure-prometheus-data-source/"
@@ -41,7 +40,7 @@ export const ConfigEditor = (props: Props) => {
41
40
sigV4AuthToggleEnabled = { config . sigV4AuthEnabled }
42
41
renderSigV4Editor = { < SIGV4ConnectionConfig { ...props } > </ SIGV4ConnectionConfig > }
43
42
secureSocksDSProxyEnabled = { config . secureSocksDSProxyEnabled }
44
- />
43
+ />
45
44
< hr />
46
45
< ConfigSection
47
46
className = { styles . advancedSettings }
0 commit comments