Update MetricCard.tsx

This commit is contained in:
Minseo Lee 2024-08-30 19:50:32 +09:00
parent 215ce7bb3c
commit 16cc13f49d

View file

@ -39,7 +39,7 @@ export const MetricCard = ({
return ( return (
<div className={classNames(styles.card, className, showPrevious && styles.compare)}> <div className={classNames(styles.card, className, showPrevious && styles.compare)}>
{showLabel && <div className={styles.label}>{label}</div>} {showLabel && <div className={styles.label}>{label}</div>}
<animated.div className={styles.value} title={value?.toString()}> <animated.div className={styles.value} title={intl.formatNumber(value)}>
{props?.x?.to(x => formatValue(x))} {props?.x?.to(x => formatValue(x))}
</animated.div> </animated.div>
{showChange && ( {showChange && (