mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove temporary NewPanelEditorContext (#23652)
This commit is contained in:
parent
43fc6c3a17
commit
a7904f13cc
@ -56,9 +56,6 @@ interface DispatchProps {
|
||||
|
||||
type Props = OwnProps & ConnectedProps & DispatchProps;
|
||||
|
||||
// TODO[NewPanelEdit]: Remove when we switch to new panel editor
|
||||
export const NewPanelEditorContext = React.createContext(false);
|
||||
|
||||
export class PanelEditorUnconnected extends PureComponent<Props> {
|
||||
querySubscription: Unsubscribable;
|
||||
|
||||
@ -123,11 +120,6 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
|
||||
document.body.style.cursor = 'row-resize';
|
||||
};
|
||||
|
||||
onPanelTitleChange = (title: string) => {
|
||||
this.props.panel.title = title;
|
||||
this.forceUpdate();
|
||||
};
|
||||
|
||||
onDiplayModeChange = (mode: DisplayMode) => {
|
||||
const { updatePanelEditorUIState } = this.props;
|
||||
updatePanelEditorUIState({
|
||||
@ -299,14 +291,12 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
|
||||
}
|
||||
|
||||
return (
|
||||
<NewPanelEditorContext.Provider value={true}>
|
||||
<div className={styles.wrapper}>
|
||||
{this.editorToolbar(styles)}
|
||||
<div className={styles.verticalSplitPanesWrapper}>
|
||||
{uiState.isPanelOptionsVisible ? this.renderWithOptionsPane(styles) : this.renderHorizontalSplit(styles)}
|
||||
</div>
|
||||
<div className={styles.wrapper}>
|
||||
{this.editorToolbar(styles)}
|
||||
<div className={styles.verticalSplitPanesWrapper}>
|
||||
{uiState.isPanelOptionsVisible ? this.renderWithOptionsPane(styles) : this.renderHorizontalSplit(styles)}
|
||||
</div>
|
||||
</NewPanelEditorContext.Provider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user