view data fixes
This commit is contained in:
@@ -1,7 +1,26 @@
|
||||
import { ViewData } from "@/lib/contracts/view-data/ViewData";
|
||||
|
||||
/**
|
||||
* ViewData for LeagueSchedule
|
||||
* This is the JSON-serializable input for the Template.
|
||||
*/
|
||||
export interface LeagueScheduleViewData {
|
||||
races: any[];
|
||||
export interface LeagueScheduleViewData extends ViewData {
|
||||
leagueId: string;
|
||||
races: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
scheduledAt: string;
|
||||
track: string;
|
||||
car: string;
|
||||
sessionType: string;
|
||||
isPast: boolean;
|
||||
isUpcoming: boolean;
|
||||
status: string;
|
||||
isUserRegistered: boolean;
|
||||
canRegister: boolean;
|
||||
canEdit: boolean;
|
||||
canReschedule: boolean;
|
||||
}>;
|
||||
currentDriverId?: string;
|
||||
isAdmin: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user