ソースを参照

chore: graph2 panel plugin should use the new ReactPanelPlugin from @grafana/ui

Johannes Schill 7 年 前
コミット
8876d17dc0
1 ファイル変更6 行追加2 行削除
  1. 6 2
      public/app/plugins/panel/graph2/module.tsx

+ 6 - 2
public/app/plugins/panel/graph2/module.tsx

@@ -1,4 +1,8 @@
-import { GraphPanel } from './GraphPanel';
+import { ReactPanelPlugin } from '@grafana/ui';
+
 import { GraphPanelEditor } from './GraphPanelEditor';
+import { GraphPanel } from './GraphPanel';
+import { Options } from './types';
 
-export { GraphPanel as Panel, GraphPanelEditor as PanelOptions };
+export const reactPanel = new ReactPanelPlugin<Options>(GraphPanel);
+reactPanel.setEditor(GraphPanelEditor);