do to formatters
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { WalletTransactionViewModel } from './WalletTransactionViewModel';
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import { CurrencyDisplay } from "../display-objects/CurrencyDisplay";
|
||||
import { CurrencyFormatter } from "../formatters/CurrencyFormatter";
|
||||
import type { LeagueWalletViewData } from "../view-data/LeagueWalletViewData";
|
||||
import { WalletTransactionViewModel } from './WalletTransactionViewModel';
|
||||
|
||||
export class LeagueWalletViewModel extends ViewModel {
|
||||
private readonly data: LeagueWalletViewData;
|
||||
@@ -24,22 +24,22 @@ export class LeagueWalletViewModel extends ViewModel {
|
||||
|
||||
/** UI-specific: Formatted balance */
|
||||
get formattedBalance(): string {
|
||||
return CurrencyDisplay.format(this.balance, this.currency);
|
||||
return CurrencyFormatter.format(this.balance, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Formatted total revenue */
|
||||
get formattedTotalRevenue(): string {
|
||||
return CurrencyDisplay.format(this.totalRevenue, this.currency);
|
||||
return CurrencyFormatter.format(this.totalRevenue, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Formatted total fees */
|
||||
get formattedTotalFees(): string {
|
||||
return CurrencyDisplay.format(this.totalFees, this.currency);
|
||||
return CurrencyFormatter.format(this.totalFees, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Formatted pending payouts */
|
||||
get formattedPendingPayouts(): string {
|
||||
return CurrencyDisplay.format(this.pendingPayouts, this.currency);
|
||||
return CurrencyFormatter.format(this.pendingPayouts, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Filtered transactions by type */
|
||||
|
||||
Reference in New Issue
Block a user