Files
gridpilot.gg/apps/website/lib/view-data/LeagueScheduleViewData.ts
Marc Mintel 046852703f
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 5m51s
Contract Testing / contract-snapshot (pull_request) Has been skipped
view data fixes
2026-01-24 12:14:08 +01:00

27 lines
605 B
TypeScript

import { ViewData } from "@/lib/contracts/view-data/ViewData";
/**
* ViewData for LeagueSchedule
* This is the JSON-serializable input for the Template.
*/
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;
}