Skip to content

Commit 2c159b8

Browse files
committed
remove unused imports
1 parent e15b87c commit 2c159b8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/components/VariableQueryEditor.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { render, screen, waitFor } from '@testing-library/react';
22
import userEvent from '@testing-library/user-event';
33
import React from 'react';
4-
import { selectOptionInTest } from 'test/helpers/selectOptionInTest';
54

65
import { PrometheusDatasource } from '../datasource';
6+
import { selectOptionInTest } from '../gcopypaste/test/helpers/selectOptionInTest';
77
import PrometheusLanguageProvider from '../language_provider';
88
import { migrateVariableEditorBackToVariableSupport } from '../migrations/variableMigration';
99
import { PromVariableQuery, PromVariableQueryType, StandardPromVariableQuery } from '../types';

src/configuration/ConfigEditor.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { SIGV4ConnectionConfig } from '@grafana/aws-sdk';
33
import { DataSourcePluginOptionsEditorProps, GrafanaTheme2 } from '@grafana/data';
44
import { ConfigSection, DataSourceDescription } from '@grafana/experimental';
55
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';
88

99
import { PromOptions } from '../types';
1010

@@ -13,7 +13,6 @@ import { DataSourcehttpSettingsOverhaul } from './DataSourceHttpSettingsOverhaul
1313
import { PromSettings } from './PromSettings';
1414
import { AdvancedHttpSettings } from './overhaul/AdvancedHttpSettings';
1515

16-
1716
export const PROM_CONFIG_LABEL_WIDTH = 30;
1817

1918
export type Props = DataSourcePluginOptionsEditorProps<PromOptions>;
@@ -29,7 +28,7 @@ export const ConfigEditor = (props: Props) => {
2928
<Alert title="Error" severity="error">
3029
Browser access mode in the Prometheus data source is no longer available. Switch to server access mode.
3130
</Alert>
32-
)}
31+
)}
3332
<DataSourceDescription
3433
dataSourceName="Prometheus"
3534
docsLink="https://grafana.com/docs/grafana/latest/datasources/prometheus/configure-prometheus-data-source/"
@@ -41,7 +40,7 @@ export const ConfigEditor = (props: Props) => {
4140
sigV4AuthToggleEnabled={config.sigV4AuthEnabled}
4241
renderSigV4Editor={<SIGV4ConnectionConfig {...props}></SIGV4ConnectionConfig>}
4342
secureSocksDSProxyEnabled={config.secureSocksDSProxyEnabled}
44-
/>
43+
/>
4544
<hr />
4645
<ConfigSection
4746
className={styles.advancedSettings}

0 commit comments

Comments
 (0)