import LanguageDistribution from '../../../components/charts/LanguageDistribution';
import LeakPeriodLegend from '../components/LeakPeriodLegend';
import { ComplexityDistribution } from '../../../components/shared/complexity-distribution';
-import { isDiffMetric, formatLeak } from '../utils';
+import { isDiffMetric } from '../utils';
import { TooltipsContainer } from '../../../components/mixins/tooltips-mixin';
import { getLocalizedMetricName } from '../../../helpers/l10n';
{isDiffMetric(metric) ? (
<div className="measure-details-value-leak">
- {formatLeak(measure.leak, metric)}
+ <Measure measure={measure} metric={metric}/>
</div>
) : (
<div className="measure-details-value-absolute">
import Measure from '../components/Measure';
import { isDiffMetric } from '../utils';
-import { formatMeasure } from '../../../helpers/measures';
const MeasureListValue = ({ measure }) => {
const { metric } = measure;
if (isDiffMetric(metric)) {
return (
<div id={`measure-${measure.metric.key}-leak`} className="domain-measures-value domain-measures-leak">
- {formatMeasure(measure.leak, measure.metric.type)}
+ <Measure measure={measure}/>
</div>
);
}