website cleanup
This commit is contained in:
@@ -2,14 +2,19 @@
|
||||
|
||||
import Link from 'next/link';
|
||||
import { ChevronRight } from 'lucide-react';
|
||||
import type { RaceDetailRaceDTO } from '@/lib/types/generated/RaceDetailRaceDTO';
|
||||
import type { RaceResultDTO } from '@/lib/types/generated/RaceResultDTO';
|
||||
import type { RaceDetailLeagueDTO } from '@/lib/types/generated/RaceDetailLeagueDTO';
|
||||
import { RaceResultViewModel } from '@/lib/view-models/RaceResultViewModel';
|
||||
|
||||
interface RaceResultCardProps {
|
||||
race: RaceDetailRaceDTO;
|
||||
result: RaceResultDTO;
|
||||
league?: RaceDetailLeagueDTO;
|
||||
race: {
|
||||
id: string;
|
||||
track: string;
|
||||
car: string;
|
||||
scheduledAt: string;
|
||||
};
|
||||
result: RaceResultViewModel;
|
||||
league?: {
|
||||
name: string;
|
||||
};
|
||||
showLeague?: boolean;
|
||||
}
|
||||
|
||||
@@ -19,6 +24,7 @@ export default function RaceResultCard({
|
||||
league,
|
||||
showLeague = true,
|
||||
}: RaceResultCardProps) {
|
||||
|
||||
const getPositionColor = (position: number) => {
|
||||
if (position === 1) return 'bg-green-400/20 text-green-400';
|
||||
if (position === 2) return 'bg-gray-400/20 text-gray-400';
|
||||
|
||||
Reference in New Issue
Block a user