Commit e35e266c by Dominik Prokop

Fix TS errors

parent b02c89c3
......@@ -77,7 +77,7 @@ export class PanelHeaderCorner extends Component<Props> {
<>
{infoMode === InfoModes.Info || infoMode === InfoModes.Links ? (
<Tooltip
content={this.getInfoContent}
content={this.getInfoContent()}
placement="bottom-start"
>
<div
......
......@@ -70,7 +70,7 @@ export class DashboardPermissions extends PureComponent<Props, State> {
<div className="dashboard-settings__header">
<div className="page-action-bar">
<h3 className="d-inline-block">Permissions</h3>
<Tooltip placement="auto" content={PermissionsInfo}>
<Tooltip placement="auto" content={<PermissionsInfo />}>
<div className="page-sub-heading-icon">
<i className="gicon gicon-question gicon--has-hover" />
</div>
......
......@@ -84,7 +84,7 @@ export class FolderPermissions extends PureComponent<Props, State> {
<div className="page-container page-body">
<div className="page-action-bar">
<h3 className="page-sub-heading">Folder Permissions</h3>
<Tooltip placement="auto" content={PermissionsInfo}>
<Tooltip placement="auto" content={<PermissionsInfo />}>
<div className="page-sub-heading-icon">
<i className="gicon gicon-question gicon--has-hover" />
</div>
......
......@@ -3,7 +3,6 @@ import classNames from 'classnames';
import { TimeSeries } from 'app/core/core';
import { SeriesColorPicker } from '@grafana/ui';
import { ThemeProvider } from 'app/core/utils/ConfigProvider';
import { GrafanaTheme } from '@grafana/ui/';
export const LEGEND_STATS = ['min', 'max', 'avg', 'current', 'total'];
......@@ -176,9 +175,9 @@ class LegendSeriesIcon extends PureComponent<LegendSeriesIconProps, LegendSeries
optionalClass="graph-legend-icon"
yaxis={this.props.yaxis}
color={this.props.color}
onColorChange={this.props.onColorChange}
onChange={this.props.onColorChange}
onToggleAxis={this.props.onToggleAxis}
theme={theme as GrafanaTheme}
theme={theme}
>
<span>
<SeriesIcon color={this.props.color} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment