website refactor
This commit is contained in:
@@ -19,6 +19,11 @@ export class TeamsViewDataBuilder {
|
||||
ratingLabel: RatingDisplay.format(team.rating),
|
||||
winsLabel: NumberDisplay.format(team.totalWins || 0),
|
||||
racesLabel: NumberDisplay.format(team.totalRaces || 0),
|
||||
region: team.region,
|
||||
isRecruiting: team.isRecruiting,
|
||||
category: team.category,
|
||||
performanceLevel: team.performanceLevel,
|
||||
description: team.description,
|
||||
}));
|
||||
|
||||
return { teams };
|
||||
|
||||
@@ -14,6 +14,11 @@ export interface TeamSummaryData {
|
||||
ratingLabel: string;
|
||||
winsLabel: string;
|
||||
racesLabel: string;
|
||||
region?: string;
|
||||
isRecruiting: boolean;
|
||||
category?: string;
|
||||
performanceLevel?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface TeamsViewData extends ViewData {
|
||||
|
||||
Reference in New Issue
Block a user