Removed toggle formatting.

This commit is contained in:
Mike Cao committed 2023-10-04 16:04:10 -07:00
1 parent ab0a7bbb13
commit 367e0ecdf4
6 files changed
+19 -51

No files matched your search

+5 -2
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>