view data fixes
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 5m53s
Contract Testing / contract-snapshot (pull_request) Has been skipped

This commit is contained in:
2026-01-22 23:44:26 +01:00
parent 18133aef4c
commit ae58839eb2
16 changed files with 76 additions and 71 deletions

View 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;
}