view data fixes
This commit is contained in:
@@ -1,26 +1,7 @@
|
||||
import { ViewData } from '@/lib/contracts/view-data/ViewData';
|
||||
|
||||
/**
|
||||
* LeagueScheduleViewData - Pure ViewData for LeagueScheduleTemplate
|
||||
* Contains only raw serializable data, no methods or computed properties
|
||||
* ViewData for LeagueSchedule
|
||||
* This is the JSON-serializable input for the Template.
|
||||
*/
|
||||
|
||||
export interface ScheduleRaceData {
|
||||
id: string;
|
||||
name: string;
|
||||
track: string;
|
||||
car: string;
|
||||
scheduledAt: string;
|
||||
status: string;
|
||||
export interface LeagueScheduleViewData {
|
||||
races: any[];
|
||||
}
|
||||
|
||||
|
||||
export interface LeagueScheduleViewData extends ViewData {
|
||||
leagueId: string;
|
||||
races: ScheduleRaceData[];
|
||||
seasons: Array<{
|
||||
seasonId: string;
|
||||
name: string;
|
||||
status: string;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user