diff --git a/packages/grafana-ui/src/components/Thresholds/Threshold.test.tsx b/packages/grafana-ui/src/components/Thresholds/Threshold.test.tsx index eac82e1b0f4..90ce6687985 100644 --- a/packages/grafana-ui/src/components/Thresholds/Threshold.test.tsx +++ b/packages/grafana-ui/src/components/Thresholds/Threshold.test.tsx @@ -4,7 +4,7 @@ import { PanelOptionsProps } from '@grafana/ui'; import { defaultProps } from 'app/plugins/panel/gauge/GaugePanelOptions'; import { Options } from 'app/plugins/panel/gauge/types'; import { BasicGaugeColor } from 'app/types'; -import { Thresholds } from './Thresholds'; +import { ThresholdsEditor } from './Thresholds'; const setup = (propOverrides?: object) => { const props: PanelOptionsProps = { @@ -17,7 +17,7 @@ const setup = (propOverrides?: object) => { Object.assign(props, propOverrides); - return shallow().instance() as Thresholds; + return shallow().instance() as ThresholdsEditor; }; describe('Add threshold', () => { diff --git a/packages/grafana-ui/src/components/Thresholds/Thresholds.tsx b/packages/grafana-ui/src/components/Thresholds/Thresholds.tsx index b5885e4efe8..d5af07e4a49 100644 --- a/packages/grafana-ui/src/components/Thresholds/Thresholds.tsx +++ b/packages/grafana-ui/src/components/Thresholds/Thresholds.tsx @@ -10,7 +10,7 @@ interface State { baseColor: string; } -export class Thresholds extends PureComponent, State> { +export class ThresholdsEditor extends PureComponent, State> { constructor(props) { super(props); diff --git a/packages/grafana-ui/src/components/index.ts b/packages/grafana-ui/src/components/index.ts index fef3f6604c9..79764ac8fa4 100644 --- a/packages/grafana-ui/src/components/index.ts +++ b/packages/grafana-ui/src/components/index.ts @@ -5,4 +5,4 @@ export { CustomScrollbar } from './CustomScrollbar/CustomScrollbar'; export { ColorPicker } from './ColorPicker/ColorPicker'; export { SeriesColorPickerPopover } from './ColorPicker/SeriesColorPickerPopover'; export { SeriesColorPicker } from './ColorPicker/SeriesColorPicker'; -export { Thresholds } from './Thresholds/Thresholds'; +export { ThresholdsEditor } from './Thresholds/Thresholds'; diff --git a/public/app/plugins/panel/gauge/GaugePanelOptions.tsx b/public/app/plugins/panel/gauge/GaugePanelOptions.tsx index 7b627a09592..2030b3c4cde 100644 --- a/public/app/plugins/panel/gauge/GaugePanelOptions.tsx +++ b/public/app/plugins/panel/gauge/GaugePanelOptions.tsx @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import ValueOptions from 'app/plugins/panel/gauge/ValueOptions'; import { BasicGaugeColor } from 'app/types'; -import { PanelOptionsProps, Thresholds } from '@grafana/ui'; +import { PanelOptionsProps, ThresholdsEditor } from '@grafana/ui'; import ValueMappings from 'app/plugins/panel/gauge/ValueMappings'; import { Options } from './types'; import GaugeOptions from './GaugeOptions'; @@ -33,7 +33,7 @@ export default class GaugePanelOptions extends PureComponent - +