website refactor
This commit is contained in:
23
apps/website/lib/view-data/LeagueScheduleViewData.ts
Normal file
23
apps/website/lib/view-data/LeagueScheduleViewData.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* LeagueScheduleViewData - Pure ViewData for LeagueScheduleTemplate
|
||||
* Contains only raw serializable data, no methods or computed properties
|
||||
*/
|
||||
|
||||
export interface ScheduleRaceData {
|
||||
id: string;
|
||||
name: string;
|
||||
track: string;
|
||||
car: string;
|
||||
scheduledAt: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface LeagueScheduleViewData {
|
||||
leagueId: string;
|
||||
races: ScheduleRaceData[];
|
||||
seasons: Array<{
|
||||
seasonId: string;
|
||||
name: string;
|
||||
status: string;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user