Commit a57310ef by Torkel Ödegaard Committed by GitHub

Merge pull request #15796 from grafana/move-unitpicker-to-grafana-uo

Move unitpicker to grafana/ui
parents d4c71809 ee4df155
import React, { PureComponent } from 'react';
import { getValueFormats } from '@grafana/ui';
import { Select } from '@grafana/ui';
import { Select } from '..';
import { getValueFormats } from '../../utils';
interface Props {
onChange: (item: any) => void;
......@@ -8,7 +10,7 @@ interface Props {
width?: number;
}
export default class UnitPicker extends PureComponent<Props> {
export class UnitPicker extends PureComponent<Props> {
static defaultProps = {
width: 12,
};
......
......@@ -26,3 +26,4 @@ export { ValueMappingsEditor } from './ValueMappingsEditor/ValueMappingsEditor';
export { Gauge } from './Gauge/Gauge';
export { Switch } from './Switch/Switch';
export { EmptySearchResult } from './EmptySearchResult/EmptySearchResult';
export { UnitPicker } from './UnitPicker/UnitPicker';
......@@ -2,8 +2,7 @@
import React, { PureComponent } from 'react';
// Components
import UnitPicker from 'app/core/components/Select/UnitPicker';
import { FormField, FormLabel, PanelOptionsGroup, Select } from '@grafana/ui';
import { FormField, FormLabel, PanelOptionsGroup, Select, UnitPicker } from '@grafana/ui';
// Types
import { SingleStatValueOptions } from './types';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment