fix: updated from 9.3.3 to 15
This commit is contained in:
@@ -13,7 +13,7 @@ interface LiveSessionClientProps {
|
||||
serverTrack: string;
|
||||
serverConfig: string;
|
||||
connectedPlayers: number;
|
||||
initialCars: any[];
|
||||
initialCars: unknown[];
|
||||
}
|
||||
|
||||
export default function LiveSessionClient({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// components/live/LiveTiming.tsx
|
||||
'use client';
|
||||
|
||||
import { BoltIcon, TrophyIcon } from '@/components/ui/icons';
|
||||
import { BoltIcon } from '@/components/ui/icons';
|
||||
|
||||
interface TimingEntry {
|
||||
position: number;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { getTrackMapUrl, cleanTrackName, cleanTrackConfig } from '@/lib/trackUtils';
|
||||
import { getTrackMapConfig, worldToMapCoords, type TrackMapConfig } from '@/lib/trackMapConfig';
|
||||
import Image from 'next/image';
|
||||
|
||||
interface Car {
|
||||
carID: number;
|
||||
@@ -50,8 +51,9 @@ export default function LiveTrackMap({ track, trackConfig, cars }: LiveTrackMapP
|
||||
};
|
||||
|
||||
const trackMapUrl = getTrackMapUrl(track, trackConfig);
|
||||
const displayTrackName = cleanTrackName(track);
|
||||
const displayTrackConfig = cleanTrackConfig(trackConfig);
|
||||
// INFO: UNUSED
|
||||
//const displayTrackName = cleanTrackName(track);
|
||||
//const displayTrackConfig = cleanTrackConfig(trackConfig);
|
||||
|
||||
useEffect(() => {
|
||||
getTrackMapConfig(track, trackConfig).then(config => {
|
||||
|
||||
Reference in New Issue
Block a user