@@ -16,11 +16,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import classnames from 'classnames';
|
||||
import {
|
||||
CurrencyType,
|
||||
Duration,
|
||||
GrowthType,
|
||||
} from '../../types';
|
||||
import { CurrencyType, Duration, GrowthType } from '../../types';
|
||||
import { ChangeStatistic } from '@backstage/plugin-cost-insights-common';
|
||||
import { rateOf } from '../../utils/currency';
|
||||
import { growthOf } from '../../utils/change';
|
||||
|
||||
@@ -40,6 +40,7 @@ export const CostGrowthIndicator = (props: CostGrowthIndicatorProps) => {
|
||||
const { change, formatter, className, ...extraProps } = props;
|
||||
|
||||
const classes = useStyles();
|
||||
|
||||
const growth = growthOf(change, engineerThreshold);
|
||||
|
||||
const classNames = classnames(classes.indicator, className, {
|
||||
|
||||
Reference in New Issue
Block a user