view data fixes
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
import { ViewData } from "../contracts/view-data/ViewData";
|
||||
import type { LeagueConfigFormModel } from '../types/LeagueConfigFormModel';
|
||||
|
||||
|
||||
export interface LeagueSettingsViewData extends ViewData {
|
||||
leagueId: string;
|
||||
/**
|
||||
* ViewData for LeagueSettings
|
||||
* This is the JSON-serializable input for the Template.
|
||||
*/
|
||||
export interface LeagueSettingsViewData {
|
||||
league: {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
visibility: 'public' | 'private';
|
||||
ownerId: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
};
|
||||
config: {
|
||||
maxDrivers: number;
|
||||
scoringPresetId: string;
|
||||
allowLateJoin: boolean;
|
||||
requireApproval: boolean;
|
||||
};
|
||||
}
|
||||
config: LeagueConfigFormModel;
|
||||
presets: any[];
|
||||
owner: any | null;
|
||||
members: any[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user