do to formatters
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import { CurrencyDisplay } from "../display-objects/CurrencyDisplay";
|
||||
import { CurrencyFormatter } from "../formatters/CurrencyFormatter";
|
||||
import type { SponsorshipPricingViewData } from "../view-data/SponsorshipPricingViewData";
|
||||
|
||||
export class SponsorshipPricingViewModel extends ViewModel {
|
||||
@@ -16,12 +16,12 @@ export class SponsorshipPricingViewModel extends ViewModel {
|
||||
|
||||
/** UI-specific: Formatted main slot price */
|
||||
get formattedMainSlotPrice(): string {
|
||||
return CurrencyDisplay.format(this.mainSlotPrice, this.currency);
|
||||
return CurrencyFormatter.format(this.mainSlotPrice, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Formatted secondary slot price */
|
||||
get formattedSecondarySlotPrice(): string {
|
||||
return CurrencyDisplay.format(this.secondarySlotPrice, this.currency);
|
||||
return CurrencyFormatter.format(this.secondarySlotPrice, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Price difference */
|
||||
@@ -31,7 +31,7 @@ export class SponsorshipPricingViewModel extends ViewModel {
|
||||
|
||||
/** UI-specific: Formatted price difference */
|
||||
get formattedPriceDifference(): string {
|
||||
return CurrencyDisplay.format(this.priceDifference, this.currency);
|
||||
return CurrencyFormatter.format(this.priceDifference, this.currency);
|
||||
}
|
||||
|
||||
/** UI-specific: Discount percentage for secondary slot */
|
||||
|
||||
Reference in New Issue
Block a user