mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Renamed Thresholds to ThresholdsEditor
This commit is contained in:
@@ -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<Options> = {
|
||||
@@ -17,7 +17,7 @@ const setup = (propOverrides?: object) => {
|
||||
|
||||
Object.assign(props, propOverrides);
|
||||
|
||||
return shallow(<Thresholds {...props} />).instance() as Thresholds;
|
||||
return shallow(<ThresholdsEditor {...props} />).instance() as ThresholdsEditor;
|
||||
};
|
||||
|
||||
describe('Add threshold', () => {
|
||||
|
||||
@@ -10,7 +10,7 @@ interface State {
|
||||
baseColor: string;
|
||||
}
|
||||
|
||||
export class Thresholds extends PureComponent<PanelOptionsProps<Options>, State> {
|
||||
export class ThresholdsEditor extends PureComponent<PanelOptionsProps<Options>, State> {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user