From 6472c2bcd9484b03416c9aa34976c93670959b84 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 Mar 2019 11:30:52 -0700 Subject: [PATCH] generic repeater --- public/app/plugins/panel/bargauge/BarGaugePanel.tsx | 6 +++--- public/app/plugins/panel/gauge/GaugePanel.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx index aad6b00fdc0..9f60c3440eb 100644 --- a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx +++ b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx @@ -10,12 +10,12 @@ import { BarGauge, VizRepeater } from '@grafana/ui'; // Types import { BarGaugeOptions } from './types'; -import { PanelProps } from '@grafana/ui/src/types'; +import { PanelProps, SingleStatValueInfo } from '@grafana/ui/src/types'; interface Props extends PanelProps {} export class BarGaugePanel extends PureComponent { - renderBarGauge(value, width, height) { + renderBarGauge(value: SingleStatValueInfo, width, height) { const { replaceVariables, options } = this.props; const { valueOptions } = options; @@ -24,7 +24,7 @@ export class BarGaugePanel extends PureComponent { return ( {} export class GaugePanel extends PureComponent { - renderGauge(value, width, height) { + renderGauge(value: SingleStatValueInfo, width, height) { const { replaceVariables, options } = this.props; const { valueOptions } = options; @@ -24,7 +24,7 @@ export class GaugePanel extends PureComponent { return (