Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Mike Cao 2022-08-29 20:57:58 -07:00
commit 2da51ee931
2 changed files with 6 additions and 2 deletions

View File

@ -29,9 +29,9 @@ const MetricCard = ({
: !reverseColors : !reverseColors
? styles.negative ? styles.negative
: styles.positive : styles.positive
}`} } ${change >= 0 ? styles.plusSign : ''}`}
> >
{changeProps.x.interpolate(x => `${change >= 0 ? '+' : ''}${format(x)}`)} {changeProps.x.interpolate(x => format(x))}
</animated.span> </animated.span>
)} )}
</div> </div>

View File

@ -37,3 +37,7 @@
.change.negative { .change.negative {
color: var(--red500); color: var(--red500);
} }
.change.plusSign::before {
content: '+';
}