website refactor
This commit is contained in:
30
apps/website/ui/NextRaceCardWrapper.tsx
Normal file
30
apps/website/ui/NextRaceCardWrapper.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
import { routes } from '@/lib/routing/RouteConfig';
|
||||
import { NextRaceCard as UiNextRaceCard } from '@/ui/NextRaceCard';
|
||||
|
||||
interface NextRaceCardProps {
|
||||
nextRace: {
|
||||
id: string;
|
||||
track: string;
|
||||
car: string;
|
||||
formattedDate: string;
|
||||
formattedTime: string;
|
||||
timeUntil: string;
|
||||
isMyLeague: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export function NextRaceCard({ nextRace }: NextRaceCardProps) {
|
||||
return (
|
||||
<UiNextRaceCard
|
||||
track={nextRace.track}
|
||||
car={nextRace.car}
|
||||
formattedDate={nextRace.formattedDate}
|
||||
formattedTime={nextRace.formattedTime}
|
||||
timeUntil={nextRace.timeUntil}
|
||||
isMyLeague={nextRace.isMyLeague}
|
||||
href={routes.race.detail(nextRace.id)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user