1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

Revert "Rremove millify from PrettifyLargeNumber"

This reverts commit 9bc0af865c.
This commit is contained in:
Gastón Fournier 2024-09-02 17:16:08 +02:00
parent ab20a0dbfe
commit 5b64b4cdd0
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -1,4 +1,5 @@
import type { FC } from 'react';
import millify from 'millify';
import { Tooltip } from '@mui/material';
import { LARGE_NUMBER_PRETTIFIED } from 'utils/testIds';
import { ConditionallyRender } from '../ConditionallyRender/ConditionallyRender';
@ -31,7 +32,7 @@ export const PrettifyLargeNumber: FC<IPrettifyLargeNumberProps> = ({
if (value < threshold) {
prettyValue = value.toLocaleString();
} else {
prettyValue = `${value}`;
prettyValue = millify(value, { precision });
showTooltip = true;
}