mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
update
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { PanelProps, ReactPanelPlugin } from '@grafana/ui';
|
||||
import { ReactPanelPlugin } from '@grafana/ui';
|
||||
|
||||
export class Text2 extends PureComponent<PanelProps> {
|
||||
constructor(props: PanelProps) {
|
||||
super(props);
|
||||
}
|
||||
import { TextPanelEditor } from './TextPanelEditor';
|
||||
import { TextPanel } from './TextPanel';
|
||||
import { TextOptions, defaults } from './types';
|
||||
|
||||
render() {
|
||||
return <h2>Text Panel!</h2>;
|
||||
}
|
||||
}
|
||||
export const reactPanel = new ReactPanelPlugin<TextOptions>(TextPanel);
|
||||
|
||||
export const reactPanel = new ReactPanelPlugin(Text2);
|
||||
reactPanel.setEditor(TextPanelEditor);
|
||||
reactPanel.setDefaults(defaults);
|
||||
|
||||
Reference in New Issue
Block a user