mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
ValueOptions -> PiechartValueEditor
This commit is contained in:
parent
0f102001b6
commit
5da9794a8e
@ -1,7 +1,7 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { PanelEditorProps, PanelOptionsGrid } from '@grafana/ui';
|
||||
|
||||
import ValueOptions from './ValueOptions';
|
||||
import PiechartValueEditor from './PiechartValueEditor';
|
||||
import { PiechartOptions, PiechartValueOptions } from './types';
|
||||
|
||||
export default class PiechartPanelEditor extends PureComponent<PanelEditorProps<PiechartOptions>> {
|
||||
@ -17,7 +17,7 @@ export default class PiechartPanelEditor extends PureComponent<PanelEditorProps<
|
||||
return (
|
||||
<>
|
||||
<PanelOptionsGrid>
|
||||
<ValueOptions onChange={this.onValueOptionsChanged} options={options.valueOptions} />
|
||||
<PiechartValueEditor onChange={this.onValueOptionsChanged} options={options.valueOptions} />
|
||||
</PanelOptionsGrid>
|
||||
</>
|
||||
);
|
||||
|
@ -18,7 +18,7 @@ export interface Props {
|
||||
onChange: (valueOptions: PiechartValueOptions) => void;
|
||||
}
|
||||
|
||||
export default class ValueOptions extends PureComponent<Props> {
|
||||
export default class PiechartValueEditor extends PureComponent<Props> {
|
||||
onUnitChange = unit =>
|
||||
this.props.onChange({
|
||||
...this.props.options,
|
Loading…
Reference in New Issue
Block a user