make thresholds and growth enums public
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
import React from 'react';
|
||||
import classnames from 'classnames';
|
||||
import { ChangeStatistic, CurrencyType, Duration } from '../../types';
|
||||
import { ChangeStatistic, CurrencyType, Duration, EngineerThreshold, GrowthType } from '../../types';
|
||||
import { rateOf } from '../../utils/currency';
|
||||
import { growthOf, GrowthType, EngineerThreshold } from '../../utils/change';
|
||||
import { growthOf } from '../../utils/change';
|
||||
import { useCostGrowthStyles as useStyles } from '../../utils/styles';
|
||||
import { formatPercent, formatCurrency } from '../../utils/formatters';
|
||||
import { indefiniteArticleOf } from '../../utils/grammar';
|
||||
|
||||
@@ -20,3 +20,16 @@ export interface ChangeStatistic {
|
||||
// The actual USD change between time periods (can be negative if costs decreased)
|
||||
amount: number;
|
||||
}
|
||||
|
||||
export const EngineerThreshold = 0.5;
|
||||
|
||||
export enum ChangeThreshold {
|
||||
upper = 0.05,
|
||||
lower = -0.05,
|
||||
}
|
||||
|
||||
export enum GrowthType {
|
||||
Negligible,
|
||||
Savings,
|
||||
Excess,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user