Added fiat balance to address and made fiat balance into a component.

This commit is contained in:
softsimon committed 2020-03-02 17:29:00 +07:00
1 parent d28730787a
commit 669a5e429d
11 files changed
+60 -15

No files matched your search

@@ -47,7 +47,7 @@
</tr>
<tr>
<td>Block subsidy</td>
<td>{{ blockSubsidy | number: '1.2-2' }} BTC <span *ngIf="conversions">(<span class="green-color">{{ conversions.USD * blockSubsidy | currency:'USD':'symbol':'1.0-0' }}</span>)</span></td>
<td>{{ blockSubsidy | number: '1.2-2' }} BTC <span *ngIf="conversions">(<app-fiat [value]="blockSubsidy"></app-fiat>)</span></td>
</tr>
<tr>
<td>Status</td>
@@ -22,7 +22,6 @@ export class BlockComponent implements OnInit {
isLoadingTransactions = true;
error: any;
blockSubsidy = 50;
conversions: any;
constructor(
private route: ActivatedRoute,
@@ -69,12 +68,6 @@ export class BlockComponent implements OnInit {
this.stateService.blocks$
.subscribe((block) => this.latestBlock = block);
this.stateService.conversions$
.subscribe((conversions) => {
this.conversions = conversions;
});
}
setBlockSubsidy() {