do to formatters
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import { DashboardConsistencyFormatter } from "../formatters/DashboardConsistencyFormatter";
|
||||
import { NumberFormatter } from "../formatters/NumberFormatter";
|
||||
import { RatingFormatter } from "../formatters/RatingFormatter";
|
||||
import { ProfileViewData } from "../view-data/ProfileViewData";
|
||||
import { RatingDisplay } from "../display-objects/RatingDisplay";
|
||||
import { DashboardConsistencyDisplay } from "../display-objects/DashboardConsistencyDisplay";
|
||||
import { NumberDisplay } from "../display-objects/NumberDisplay";
|
||||
|
||||
/**
|
||||
* Driver Profile Driver Summary View Model
|
||||
@@ -44,7 +44,7 @@ export class DriverProfileDriverSummaryViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
get ratingLabel(): string {
|
||||
return RatingDisplay.format(this.rating);
|
||||
return RatingFormatter.format(this.rating);
|
||||
}
|
||||
|
||||
get globalRank(): number | null {
|
||||
@@ -52,7 +52,7 @@ export class DriverProfileDriverSummaryViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
get globalRankLabel(): string {
|
||||
return this.globalRank ? NumberDisplay.format(this.globalRank) : '—';
|
||||
return this.globalRank ? NumberFormatter.format(this.globalRank) : '—';
|
||||
}
|
||||
|
||||
get consistency(): number | null {
|
||||
@@ -60,7 +60,7 @@ export class DriverProfileDriverSummaryViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
get consistencyLabel(): string {
|
||||
return this.consistency ? DashboardConsistencyDisplay.format(this.consistency) : '—';
|
||||
return this.consistency ? DashboardConsistencyFormatter.format(this.consistency) : '—';
|
||||
}
|
||||
|
||||
get bio(): string | null {
|
||||
@@ -72,6 +72,6 @@ export class DriverProfileDriverSummaryViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
get totalDriversLabel(): string {
|
||||
return this.totalDrivers ? NumberDisplay.format(this.totalDrivers) : '—';
|
||||
return this.totalDrivers ? NumberFormatter.format(this.totalDrivers) : '—';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user