From 9a341d5fd295891b7efbb2aa58628215f86afda0 Mon Sep 17 00:00:00 2001 From: Chris Langhout Date: Fri, 25 Nov 2022 12:26:16 +0100 Subject: [PATCH] chore: run prettier Signed-off-by: Chris Langhout --- .../cost-insights/src/components/CostGrowth/CostGrowth.tsx | 6 +----- .../src/components/CostGrowth/CostGrowthIndicator.tsx | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx index cc66c05d3f..51f9c61e7b 100644 --- a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx +++ b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx @@ -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'; diff --git a/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx b/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx index 123d1e40b7..cf07d97d0a 100644 --- a/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx +++ b/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx @@ -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, {