make thresholds and growth enums public

This commit is contained in:
Ryan Vazquez
2020-10-29 17:34:01 -04:00
parent a40536a24b
commit f454f0eecc
2 changed files with 15 additions and 2 deletions
@@ -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,
}