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:
parent
ab20a0dbfe
commit
5b64b4cdd0
@ -1,4 +1,5 @@
|
|||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
|
import millify from 'millify';
|
||||||
import { Tooltip } from '@mui/material';
|
import { Tooltip } from '@mui/material';
|
||||||
import { LARGE_NUMBER_PRETTIFIED } from 'utils/testIds';
|
import { LARGE_NUMBER_PRETTIFIED } from 'utils/testIds';
|
||||||
import { ConditionallyRender } from '../ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from '../ConditionallyRender/ConditionallyRender';
|
||||||
@ -31,7 +32,7 @@ export const PrettifyLargeNumber: FC<IPrettifyLargeNumberProps> = ({
|
|||||||
if (value < threshold) {
|
if (value < threshold) {
|
||||||
prettyValue = value.toLocaleString();
|
prettyValue = value.toLocaleString();
|
||||||
} else {
|
} else {
|
||||||
prettyValue = `${value}`;
|
prettyValue = millify(value, { precision });
|
||||||
showTooltip = true;
|
showTooltip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user