Migration: Migrate org switcher to react (#19607)

* Migration: Migrate org switcher to react

* Improve modal overflow behavior

* Updated modal backdrop

* Renamed type

* Modal: Refactoring and reducing duplication
This commit is contained in:
kay delaney
2019-12-03 21:47:20 +00:00
committed by Torkel Ödegaard
parent 5cd4ffffe3
commit a093fbb51a
12 changed files with 216 additions and 165 deletions

View File

@@ -39,16 +39,7 @@ export class PanelInspector extends PureComponent<Props, State> {
// TODO? should we get the result with an observable once?
const data = (panel.getQueryRunner() as any).lastResult;
return (
<Modal
title={
<div className="modal-header-title">
<i className="fa fa-info-circle" />
<span className="p-l-1">{panel.title ? panel.title : 'Panel'}</span>
</div>
}
onDismiss={this.onDismiss}
isOpen={true}
>
<Modal title={panel.title} icon="fa fa-info-circle" onDismiss={this.onDismiss} isOpen={true}>
<div className={bodyStyle}>
<JSONFormatter json={data} open={2} />
</div>