website refactor
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { RaceResultViewModel } from '@/lib/view-models/RaceResultViewModel';
|
||||
import { RaceResultCard as UiRaceResultCard } from './RaceResultCard';
|
||||
import { DateDisplay } from '@/lib/display-objects/DateDisplay';
|
||||
|
||||
interface RaceResultCardProps {
|
||||
race: {
|
||||
@@ -28,10 +29,12 @@ export function RaceResultCard({
|
||||
raceId={race.id}
|
||||
track={race.track}
|
||||
car={race.car}
|
||||
scheduledAt={race.scheduledAt}
|
||||
formattedDate={DateDisplay.formatShort(race.scheduledAt)}
|
||||
position={result.position}
|
||||
startPosition={result.startPosition}
|
||||
incidents={result.incidents}
|
||||
positionLabel={result.formattedPosition}
|
||||
startPositionLabel={result.formattedStartPosition}
|
||||
incidentsLabel={result.formattedIncidents}
|
||||
positionsGainedLabel={result.formattedPositionsGained}
|
||||
leagueName={league?.name}
|
||||
showLeague={showLeague}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user