Replace formatLongNumber with intl.formatNumber

This commit is contained in:
Minseo Lee 2024-08-30 09:59:43 +09:00
parent 5636bd9617
commit 16f86c7715
12 changed files with 44 additions and 48 deletions

View file

@ -104,7 +104,7 @@ const AnimatedRow = ({ label, value = 0, percent, change, animate, showPercentag
<div className={styles.percent}>
<animated.div className={styles.bar} style={{ width: props.width.to(n => `${n}%`) }} />
<animated.span>
{props.width.to(n => intl.formatNumber(+n / 100, { style: 'percent' }))}
{props.width.to(n => intl.formatNumber(n / 100, { style: 'percent' }))}
</animated.span>
</div>
)}