mirror of https://github.com/grafana/grafana
parent
dc9b83030f
commit
1581662a6c
@ -1,10 +1,10 @@ |
||||
import React from 'react'; |
||||
import { shallow } from 'enzyme'; |
||||
import Thresholds from './Thresholds'; |
||||
import { defaultProps } from './GaugePanelOptions'; |
||||
import { BasicGaugeColor } from 'app/types'; |
||||
import { PanelOptionsProps } from '@grafana/ui'; |
||||
import { Options } from './types'; |
||||
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'; |
||||
|
||||
const setup = (propOverrides?: object) => { |
||||
const props: PanelOptionsProps<Options> = { |
@ -1,16 +1,16 @@ |
||||
import React, { PureComponent } from 'react'; |
||||
import tinycolor from 'tinycolor2'; |
||||
import { ColorPicker } from '@grafana/ui'; |
||||
import { BasicGaugeColor, Threshold } from 'app/types'; |
||||
import { PanelOptionsProps } from '@grafana/ui'; |
||||
import { Options } from './types'; |
||||
import { BasicGaugeColor } from 'app/types'; |
||||
import { PanelOptionsProps, Threshold } from '@grafana/ui'; |
||||
import { Options } from 'app/plugins/panel/gauge/types'; |
||||
|
||||
interface State { |
||||
thresholds: Threshold[]; |
||||
baseColor: string; |
||||
} |
||||
|
||||
export default class Thresholds extends PureComponent<PanelOptionsProps<Options>, State> { |
||||
export class Thresholds extends PureComponent<PanelOptionsProps<Options>, State> { |
||||
constructor(props) { |
||||
super(props); |
||||
|
@ -1,3 +1,4 @@ |
||||
@import 'CustomScrollbar/CustomScrollbar'; |
||||
@import 'DeleteButton/DeleteButton'; |
||||
@import 'Thresholds/Thresholds'; |
||||
@import 'Tooltip/Tooltip'; |
||||
|
Loading…
Reference in new issue