Removed toggle formatting.

This commit is contained in:
Mike Cao 2023-10-04 16:04:10 -07:00
parent ab0a7bbb13
commit 367e0ecdf4
6 changed files with 19 additions and 51 deletions

View file

@ -17,7 +17,9 @@ export const MetricCard = ({
return (
<div className={classNames(styles.card, className)}>
<animated.div className={styles.value}>{props.x.to(x => format(x))}</animated.div>
<animated.div className={styles.value} title={props?.x}>
{props?.x?.to(x => format(x))}
</animated.div>
<div className={styles.label}>
{label}
{~~change !== 0 && !hideComparison && (
@ -27,8 +29,9 @@ export const MetricCard = ({
[styles.negative]: change * (reverseColors ? -1 : 1) < 0,
[styles.plusSign]: change > 0,
})}
title={changeProps?.x}
>
{changeProps.x.to(x => format(x))}
{changeProps?.x?.to(x => format(x))}
</animated.span>
)}
</div>