|
@@ -1,19 +1,10 @@
|
|
|
import React, { PureComponent } from 'react';
|
|
import React, { PureComponent } from 'react';
|
|
|
-import { PanelOptionsProps, PanelOptionsGrid } from '@grafana/ui';
|
|
|
|
|
|
|
+import { PanelEditorProps, PanelOptionsGrid } from '@grafana/ui';
|
|
|
|
|
|
|
|
import ValueOptions from './ValueOptions';
|
|
import ValueOptions from './ValueOptions';
|
|
|
import { PiechartOptions } from './types';
|
|
import { PiechartOptions } from './types';
|
|
|
|
|
|
|
|
-export const defaultProps = {
|
|
|
|
|
- options: {
|
|
|
|
|
- pieType: 'pie',
|
|
|
|
|
- unit: 'short',
|
|
|
|
|
- stat: 'current',
|
|
|
|
|
- strokeWidth: 1,
|
|
|
|
|
- },
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-export default class PiechartPanelOptions extends PureComponent<PanelOptionsProps<PiechartOptions>> {
|
|
|
|
|
|
|
+export default class PiechartPanelOptions extends PureComponent<PanelEditorProps<PiechartOptions>> {
|
|
|
static defaultProps = defaultProps;
|
|
static defaultProps = defaultProps;
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|