mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-18 00:19:49 +01:00
Rremove millify from PrettifyLargeNumber
This commit is contained in:
parent
eda3f7a232
commit
9bc0af865c
@ -1,5 +1,4 @@
|
|||||||
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';
|
||||||
@ -32,7 +31,7 @@ export const PrettifyLargeNumber: FC<IPrettifyLargeNumberProps> = ({
|
|||||||
if (value < threshold) {
|
if (value < threshold) {
|
||||||
prettyValue = `${value}`;
|
prettyValue = `${value}`;
|
||||||
} else {
|
} else {
|
||||||
prettyValue = millify(value, { precision });
|
prettyValue = `${value}`;
|
||||||
showTooltip = true;
|
showTooltip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user