mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05: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>
|
||||
{showPercentage && (
|
||||
<div className={styles.percent}>
|
||||
<animated.div
|
||||
className={styles.bar}
|
||||
style={{ width: props.width.to(n => `${n}%`), fontVariantNumeric: 'tabular-nums' }}
|
||||
/>
|
||||
<animated.span>
|
||||
<animated.div className={styles.bar} style={{ width: props.width.to(n => `${n}%`) }} />
|
||||
<animated.span style={{ fontVariantNumeric: 'tabular-nums' }}>
|
||||
{props.width.to(n => intl.formatNumber(n / 100, { style: 'percent' }))}
|
||||
</animated.span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue