website refactor
This commit is contained in:
@@ -33,9 +33,9 @@ interface FeaturedDriverCardProps {
|
||||
name: string;
|
||||
nationality: string;
|
||||
avatarUrl?: string;
|
||||
rating: number;
|
||||
wins: number;
|
||||
podiums: number;
|
||||
ratingLabel: string;
|
||||
winsLabel: string;
|
||||
podiumsLabel: string;
|
||||
skillLevel?: string;
|
||||
category?: string;
|
||||
};
|
||||
@@ -142,17 +142,17 @@ export function FeaturedDriverCard({ driver, position, onClick }: FeaturedDriver
|
||||
<Box display="grid" gridCols={3} gap={3}>
|
||||
<MiniStat
|
||||
label="Rating"
|
||||
value={driver.rating.toLocaleString()}
|
||||
value={driver.ratingLabel}
|
||||
color="text-primary-blue"
|
||||
/>
|
||||
<MiniStat
|
||||
label="Wins"
|
||||
value={driver.wins}
|
||||
value={driver.winsLabel}
|
||||
color="text-performance-green"
|
||||
/>
|
||||
<MiniStat
|
||||
label="Podiums"
|
||||
value={driver.podiums}
|
||||
value={driver.podiumsLabel}
|
||||
color="text-warning-amber"
|
||||
/>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user