website refactor
This commit is contained in:
@@ -9,10 +9,10 @@ interface TeamLeaderboardPanelProps {
|
||||
id: string;
|
||||
name: string;
|
||||
logoUrl?: string;
|
||||
rating: number;
|
||||
wins: number;
|
||||
races: number;
|
||||
memberCount: number;
|
||||
ratingLabel: string;
|
||||
winsLabel: string;
|
||||
racesLabel: string;
|
||||
memberCountLabel: string;
|
||||
}>;
|
||||
onTeamClick: (id: string) => void;
|
||||
}
|
||||
@@ -53,16 +53,16 @@ export function TeamLeaderboardPanel({ teams, onTeamClick }: TeamLeaderboardPane
|
||||
</Stack>
|
||||
</TableCell>
|
||||
<TableCell className="text-center">
|
||||
<Text font="mono" weight="bold" color="text-primary-blue">{team.rating}</Text>
|
||||
<Text font="mono" weight="bold" color="text-primary-blue">{team.ratingLabel}</Text>
|
||||
</TableCell>
|
||||
<TableCell className="text-center">
|
||||
<Text font="mono" color="text-gray-300">{team.wins}</Text>
|
||||
<Text font="mono" color="text-gray-300">{team.winsLabel}</Text>
|
||||
</TableCell>
|
||||
<TableCell className="text-center">
|
||||
<Text font="mono" color="text-gray-300">{team.races}</Text>
|
||||
<Text font="mono" color="text-gray-300">{team.racesLabel}</Text>
|
||||
</TableCell>
|
||||
<TableCell className="text-center">
|
||||
<Text font="mono" color="text-gray-400" size="xs">{team.memberCount}</Text>
|
||||
<Text font="mono" color="text-gray-400" size="xs">{team.memberCountLabel}</Text>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user