mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 12:35:38 +01:00
Replace formatLongNumber with intl.formatNumber
This commit is contained in:
parent
5636bd9617
commit
16f86c7715
12 changed files with 44 additions and 48 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue