Make fiat component color class customizable

This commit is contained in:
nymkappa committed 2023-04-04 11:42:06 +09:00
1 parent bdbb1dcf8e
commit 90fa4a8f77
3 files changed
+4 -6

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
<span class="green-color" *ngIf="blockConversion; else noblockconversion">
<span [class]="colorClass" *ngIf="blockConversion; else noblockconversion">
{{
(
(blockConversion.price[currency] > -1 ? blockConversion.price[currency] : null) ??
@@ -8,7 +8,7 @@
</span>
<ng-template #noblockconversion>
<span class="green-color" *ngIf="(conversions$ | async) as conversions">
<span [class]="colorClass" *ngIf="(conversions$ | async) as conversions">
{{ (conversions[currency] > -1 ? conversions[currency] : 0) * value / 100000000 | fiatCurrency : digitsInfo : currency }}
</span>
</ng-template>