Moving a couple of types to @grafana/ui

This commit is contained in:
Torkel Ödegaard
2018-12-23 09:15:32 +01:00
parent 0ff572efbf
commit a02b4b47b6
33 changed files with 137 additions and 159 deletions

View File

@@ -2,7 +2,8 @@ import React from 'react';
import { shallow } from 'enzyme';
import Thresholds from './Thresholds';
import { defaultProps, OptionsProps } from './module';
import { BasicGaugeColor, PanelOptionsProps } from 'app/types';
import { BasicGaugeColor } from 'app/types';
import { PanelOptionsProps } from '@grafana/ui';
const setup = (propOverrides?: object) => {
const props: PanelOptionsProps<OptionsProps> = {

View File

@@ -5,15 +5,8 @@ import ValueOptions from './ValueOptions';
import GaugeOptions from './GaugeOptions';
import Thresholds from './Thresholds';
import ValueMappings from './ValueMappings';
import {
BasicGaugeColor,
NullValueMode,
PanelOptionsProps,
PanelProps,
RangeMap,
Threshold,
ValueMap,
} from 'app/types';
import { PanelOptionsProps, PanelProps, NullValueMode } from '@grafana/ui';
import { BasicGaugeColor, RangeMap, Threshold, ValueMap } from 'app/types';
export interface OptionsProps {
baseColor: string;

View File

@@ -6,7 +6,7 @@ import React, { PureComponent } from 'react';
import { Switch } from 'app/core/components/Switch/Switch';
// Types
import { PanelOptionsProps } from 'app/types';
import { PanelOptionsProps } from '@grafana/ui';
import { Options } from './types';
export class GraphOptions extends PureComponent<PanelOptionsProps<Options>> {

View File

@@ -9,7 +9,7 @@ import Graph from 'app/viz/Graph';
import { getTimeSeriesVMs } from 'app/viz/state/timeSeries';
// Types
import { PanelProps, NullValueMode } from 'app/types';
import { PanelProps, NullValueMode } from '@grafana/ui';
import { Options } from './types';
interface Props extends PanelProps<Options> {}

View File

@@ -1,5 +1,5 @@
import React, { PureComponent } from 'react';
import { PanelProps } from 'app/types';
import { PanelProps } from '@grafana/ui';
export class Text2 extends PureComponent<PanelProps> {
constructor(props) {