LibraryPanels: Removes library panel icon from the panel header (#38749)

This commit is contained in:
Hugo Häggmark 2021-09-01 06:14:21 +02:00 committed by GitHub
parent ad610a1916
commit 38ca27428d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import React, { FC } from 'react';
import { cx, css } from '@emotion/css';
import { css, cx } from '@emotion/css';
import { DataLink, GrafanaTheme2, PanelData } from '@grafana/data';
import { Icon, useStyles2 } from '@grafana/ui';
import { selectors } from '@grafana/e2e-selectors';
@ -49,7 +49,6 @@ export const PanelHeader: FC<Props> = ({ panel, error, isViewing, isEditing, dat
return (
<div className="panel-title">
<PanelHeaderNotices frames={data.series} panelId={panel.id} />
{panel.libraryPanel && <Icon name="library-panel" style={{ marginRight: '4px' }} />}
{alertState ? (
<Icon
name={alertState === 'alerting' ? 'heart-break' : 'heart'}