mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Add messages for devices.
This commit is contained in:
parent
0d6da743b9
commit
c3426a67ee
5 changed files with 23 additions and 18 deletions
|
|
@ -15,7 +15,7 @@ const MetricCard = ({
|
|||
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
<animated.div className={styles.value}>{props.x.interpolate(x => format(x))}</animated.div>
|
||||
<animated.div className={styles.value}>{props.x.to(x => format(x))}</animated.div>
|
||||
<div className={styles.label}>
|
||||
{label}
|
||||
{~~change !== 0 && !hideComparison && (
|
||||
|
|
@ -30,7 +30,7 @@ const MetricCard = ({
|
|||
: styles.positive
|
||||
} ${change >= 0 ? styles.plusSign : ''}`}
|
||||
>
|
||||
{changeProps.x.interpolate(x => format(x))}
|
||||
{changeProps.x.to(x => format(x))}
|
||||
</animated.span>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue