mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: minor style changes
This commit is contained in:
@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
|
||||
import { getAngularLoader, AngularComponent } from 'app/core/services/AngularLoader';
|
||||
|
||||
// Components
|
||||
import { EditorTabBody, EditorToolBarView } from './EditorTabBody';
|
||||
import { EditorTabBody } from './EditorTabBody';
|
||||
import { VizTypePicker } from './VizTypePicker';
|
||||
import { FadeIn } from 'app/core/components/Animations/FadeIn';
|
||||
|
||||
@@ -197,18 +197,9 @@ export class VisualizationTab extends PureComponent<Props, State> {
|
||||
render() {
|
||||
const { plugin } = this.props;
|
||||
const { isVizPickerOpen, searchQuery } = this.state;
|
||||
const toolbarItems: EditorToolBarView[] = [];
|
||||
|
||||
if (!isVizPickerOpen) {
|
||||
toolbarItems.push({
|
||||
title: '',
|
||||
icon: 'fa fa-question',
|
||||
render: () => <h2>Help</h2>,
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<EditorTabBody heading="Visualization" renderToolbar={this.renderToolbar} toolbarItems={toolbarItems}>
|
||||
<EditorTabBody heading="Visualization" renderToolbar={this.renderToolbar}>
|
||||
<>
|
||||
<FadeIn in={isVizPickerOpen} duration={200} unmountOnExit={true}>
|
||||
<VizTypePicker
|
||||
|
||||
Reference in New Issue
Block a user