website refactor
This commit is contained in:
@@ -36,10 +36,10 @@ export function DriversTemplate({
|
||||
<Container size="lg" py={8}>
|
||||
<Stack gap={10}>
|
||||
<DriversDirectoryHeader
|
||||
totalDrivers={drivers.length}
|
||||
activeDrivers={activeCount}
|
||||
totalWins={totalWins}
|
||||
totalRaces={totalRaces}
|
||||
totalDriversLabel={viewData?.totalDriversLabel || '0'}
|
||||
activeDriversLabel={viewData?.activeCountLabel || '0'}
|
||||
totalWinsLabel={viewData?.totalWinsLabel || '0'}
|
||||
totalRacesLabel={viewData?.totalRacesLabel || '0'}
|
||||
onViewLeaderboard={onViewLeaderboard}
|
||||
/>
|
||||
|
||||
@@ -54,7 +54,8 @@ export function DriversTemplate({
|
||||
avatarUrl={driver.avatarUrl}
|
||||
nationality={driver.nationality}
|
||||
rating={driver.rating}
|
||||
wins={driver.wins}
|
||||
ratingLabel={driver.ratingLabel}
|
||||
winsLabel={String(driver.wins)}
|
||||
onClick={() => onDriverClick(driver.id)}
|
||||
/>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user