mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
Update ListTable.tsx
This commit is contained in:
parent
504e4c926b
commit
ce4a386415
1 changed files with 2 additions and 5 deletions
|
|
@ -106,11 +106,8 @@ const AnimatedRow = ({ label, value = 0, percent, change, animate, showPercentag
|
||||||
</div>
|
</div>
|
||||||
{showPercentage && (
|
{showPercentage && (
|
||||||
<div className={styles.percent}>
|
<div className={styles.percent}>
|
||||||
<animated.div
|
<animated.div className={styles.bar} style={{ width: props.width.to(n => `${n}%`) }} />
|
||||||
className={styles.bar}
|
<animated.span style={{ fontVariantNumeric: 'tabular-nums' }}>
|
||||||
style={{ width: props.width.to(n => `${n}%`), fontVariantNumeric: 'tabular-nums' }}
|
|
||||||
/>
|
|
||||||
<animated.span>
|
|
||||||
{props.width.to(n => intl.formatNumber(n / 100, { style: 'percent' }))}
|
{props.width.to(n => intl.formatNumber(n / 100, { style: 'percent' }))}
|
||||||
</animated.span>
|
</animated.span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue