mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Removed toggle formatting.
This commit is contained in:
parent
ab0a7bbb13
commit
367e0ecdf4
6 changed files with 19 additions and 51 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue