website refactor

This commit is contained in:
2026-01-16 11:13:42 +01:00
parent d86aa4583b
commit d6b94e21df
30 changed files with 217 additions and 182 deletions

View File

@@ -2,6 +2,7 @@
import { DriverViewModel } from "@/lib/view-models/DriverViewModel";
import { ProtestViewModel } from "@/lib/view-models/ProtestViewModel";
import { RaceViewModel } from "@/lib/view-models/RaceViewModel";
import { Box } from "@/ui/Box";
import { Card } from "@/ui/Card";
import { ProtestListItem } from "./ProtestListItem";
@@ -12,7 +13,10 @@ import { Flag } from "lucide-react";
interface PendingProtestsListProps {
protests: ProtestViewModel[];
drivers: Record<string, DriverViewModel>;
races: Record<string, RaceViewModel>;
leagueId: string;
onReviewProtest: (protest: ProtestViewModel) => void;
onProtestReviewed?: () => void;
}
export function PendingProtestsList({