mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
get values from base options
This commit is contained in:
parent
b1b5e8d74c
commit
0bb772aba7
@ -2,14 +2,14 @@
|
||||
import React, { PureComponent, CSSProperties } from 'react';
|
||||
|
||||
// Types
|
||||
import { SingleStatOptions } from './types';
|
||||
import { SingleStatOptions, SingleStatBaseOptions } from './types';
|
||||
|
||||
import { processSingleStatPanelData, DisplayValue, PanelProps } from '@grafana/ui';
|
||||
import { config } from 'app/core/config';
|
||||
import { getDisplayProcessor } from '@grafana/ui';
|
||||
import { ProcessedValuesRepeater } from './ProcessedValuesRepeater';
|
||||
|
||||
export const getSingleStatValues = (props: PanelProps<SingleStatOptions>): DisplayValue[] => {
|
||||
export const getSingleStatValues = (props: PanelProps<SingleStatBaseOptions>): DisplayValue[] => {
|
||||
const { panelData, replaceVariables, options } = props;
|
||||
const { valueOptions, valueMappings } = options;
|
||||
const processor = getDisplayProcessor({
|
||||
|
Loading…
Reference in New Issue
Block a user