mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-11 12:25:36 +02:00
Fix reverse color
This commit is contained in:
parent
432eca1a43
commit
cf06bbc8ca
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ const ChangePercentage = ({
|
|||
<div
|
||||
className={cn(
|
||||
"text-xs flex items-center gap-1",
|
||||
change > 0 ? "text-green-400" : "text-red-400",
|
||||
reverseColor && change > 0 ? "text-red-400" : "text-green-400"
|
||||
(reverseColor ? -change : change) > 0
|
||||
? "text-green-400"
|
||||
: "text-red-400"
|
||||
)}
|
||||
>
|
||||
{change > 0 ? (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue