wip
This commit is contained in:
@@ -71,11 +71,15 @@ interface TopThreePodiumProps {
|
||||
}
|
||||
|
||||
function TopThreePodium({ drivers, onDriverClick }: TopThreePodiumProps) {
|
||||
const top3 = drivers.slice(0, 3);
|
||||
if (drivers.length < 3) return null;
|
||||
|
||||
if (top3.length < 3) return null;
|
||||
const top3 = drivers.slice(0, 3) as [DriverListItem, DriverListItem, DriverListItem];
|
||||
|
||||
const podiumOrder = [top3[1], top3[0], top3[2]]; // 2nd, 1st, 3rd
|
||||
const podiumOrder: [DriverListItem, DriverListItem, DriverListItem] = [
|
||||
top3[1],
|
||||
top3[0],
|
||||
top3[2],
|
||||
]; // 2nd, 1st, 3rd
|
||||
const podiumHeights = ['h-32', 'h-40', 'h-24'];
|
||||
const podiumColors = [
|
||||
'from-gray-400/20 to-gray-500/10 border-gray-400/40',
|
||||
|
||||
Reference in New Issue
Block a user