do to formatters
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { NumberFormatter } from '@/lib/formatters/NumberFormatter';
|
||||
import { RatingFormatter } from '@/lib/formatters/RatingFormatter';
|
||||
import type { GetAllTeamsOutputDTO } from '@/lib/types/generated/GetAllTeamsOutputDTO';
|
||||
import type { TeamsViewData, TeamSummaryData } from '@/lib/view-data/TeamsViewData';
|
||||
import type { TeamListItemDTO } from '@/lib/types/generated/TeamListItemDTO';
|
||||
import { RatingDisplay } from '@/lib/display-objects/RatingDisplay';
|
||||
import { NumberDisplay } from '@/lib/display-objects/NumberDisplay';
|
||||
import type { TeamSummaryData, TeamsViewData } from '@/lib/view-data/TeamsViewData';
|
||||
|
||||
import { ViewDataBuilder } from "../../contracts/builders/ViewDataBuilder";
|
||||
|
||||
@@ -17,10 +17,10 @@ export class TeamsViewDataBuilder implements ViewDataBuilder<any, any> {
|
||||
teamName: team.name,
|
||||
memberCount: team.memberCount,
|
||||
logoUrl: team.logoUrl || '',
|
||||
ratingLabel: RatingDisplay.format(team.rating),
|
||||
ratingLabel: RatingFormatter.format(team.rating),
|
||||
ratingValue: team.rating || 0,
|
||||
winsLabel: NumberDisplay.format(team.totalWins || 0),
|
||||
racesLabel: NumberDisplay.format(team.totalRaces || 0),
|
||||
winsLabel: NumberFormatter.format(team.totalWins || 0),
|
||||
racesLabel: NumberFormatter.format(team.totalRaces || 0),
|
||||
region: team.region || '',
|
||||
isRecruiting: team.isRecruiting,
|
||||
category: team.category || '',
|
||||
|
||||
Reference in New Issue
Block a user