UI: ConfirmModal component (#20965)

* UI: ConfirmModal component based on Modal

* UI: refactor ConfirmModal after Modal changes

* UI: use Icon component for Modal

* UI: ConfirmModal tests

* UI: ConfirmModal story
This commit is contained in:
Alexander Zobnin
2019-12-10 11:57:34 +03:00
committed by GitHub
parent 1774b8f7e9
commit f24b84faef
7 changed files with 175 additions and 9 deletions

View File

@@ -39,7 +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={panel.title} icon="fa fa-info-circle" onDismiss={this.onDismiss} isOpen={true}>
<Modal title={panel.title} icon="info-circle" onDismiss={this.onDismiss} isOpen={true}>
<div className={bodyStyle}>
<JSONFormatter json={data} open={2} />
</div>