fix(ui-toolkit): sparkline red shaded area color
This commit is contained in:
parent
b192603e57
commit
1397aafd25
@ -15,9 +15,9 @@ function colorByChange(a: number, b: number) {
|
|||||||
|
|
||||||
function shadedColor(a: number, b: number) {
|
function shadedColor(a: number, b: number) {
|
||||||
if (a < b) {
|
if (a < b) {
|
||||||
return 'fill-market-green-600 dark:fill-market-green';
|
return 'fill-market-green-600';
|
||||||
} else if (a > b) {
|
} else if (a > b) {
|
||||||
return 'fill-market-red-600 dark:fill-market-red';
|
return 'fill-market-red';
|
||||||
}
|
}
|
||||||
return 'fill-black dark:fill-white';
|
return 'fill-black dark:fill-white';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user