diff --git a/src/components/metrics/ListTable.tsx b/src/components/metrics/ListTable.tsx index 59ded4917..098b21f94 100644 --- a/src/components/metrics/ListTable.tsx +++ b/src/components/metrics/ListTable.tsx @@ -2,7 +2,8 @@ import { FixedSizeList } from 'react-window'; import { useSpring, animated, config } from '@react-spring/web'; import classNames from 'classnames'; import Empty from 'components/common/Empty'; -import { formatLongNumber } from 'lib/format'; +import { formatLongNumberOptions } from 'lib/format'; +import { useIntl } from 'react-intl'; import { useMessages } from 'components/hooks'; import styles from './ListTable.module.css'; import { ReactNode } from 'react'; @@ -82,6 +83,7 @@ export function ListTable({ } const AnimatedRow = ({ label, value = 0, percent, change, animate, showPercentage = true }) => { + const intl = useIntl(); const props = useSpring({ width: percent, y: value, @@ -95,13 +97,15 @@ const AnimatedRow = ({ label, value = 0, percent, change, animate, showPercentag