website refactor
This commit is contained in:
28
apps/website/ui/LeagueSummaryCardWrapper.tsx
Normal file
28
apps/website/ui/LeagueSummaryCardWrapper.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import React from 'react';
|
||||
import { LeagueSummaryCard as UiLeagueSummaryCard } from '@/ui/LeagueSummaryCard';
|
||||
import { routes } from '@/lib/routing/RouteConfig';
|
||||
|
||||
interface LeagueSummaryCardProps {
|
||||
league: {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
settings: {
|
||||
maxDrivers: number;
|
||||
qualifyingFormat: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export function LeagueSummaryCard({ league }: LeagueSummaryCardProps) {
|
||||
return (
|
||||
<UiLeagueSummaryCard
|
||||
id={league.id}
|
||||
name={league.name}
|
||||
description={league.description}
|
||||
maxDrivers={league.settings.maxDrivers}
|
||||
qualifyingFormat={league.settings.qualifyingFormat}
|
||||
href={routes.league.detail(league.id)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user