view data fixes
This commit is contained in:
26
apps/website/lib/view-data/DriversViewData.ts
Normal file
26
apps/website/lib/view-data/DriversViewData.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ViewData } from "@/lib/contracts/view-data/ViewData";
|
||||
|
||||
export interface DriversViewData extends ViewData {
|
||||
drivers: {
|
||||
id: string;
|
||||
name: string;
|
||||
rating: number;
|
||||
ratingLabel: string;
|
||||
skillLevel: string;
|
||||
category?: string;
|
||||
nationality: string;
|
||||
racesCompleted: number;
|
||||
wins: number;
|
||||
podiums: number;
|
||||
isActive: boolean;
|
||||
rank: number;
|
||||
avatarUrl?: string;
|
||||
}[];
|
||||
totalRaces: number;
|
||||
totalRacesLabel: string;
|
||||
totalWins: number;
|
||||
totalWinsLabel: string;
|
||||
activeCount: number;
|
||||
activeCountLabel: string;
|
||||
totalDriversLabel: string;
|
||||
}
|
||||
Reference in New Issue
Block a user