Update ListTable.tsx

This commit is contained in:
Minseo Lee 2024-08-30 22:35:59 +09:00
parent 504e4c926b
commit ce4a386415

View file

@ -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>