Fix jwt-token
This commit is contained in:
@@ -422,8 +422,11 @@ const MapView = () => {
|
|||||||
dashArray: dashPattern
|
dashArray: dashPattern
|
||||||
}}
|
}}
|
||||||
eventHandlers={{
|
eventHandlers={{
|
||||||
click: () => {
|
click: (e) => {
|
||||||
|
e.originalEvent.preventDefault();
|
||||||
|
e.originalEvent.stopPropagation();
|
||||||
console.log('MapView: Ring clicked for drone:', detection);
|
console.log('MapView: Ring clicked for drone:', detection);
|
||||||
|
setSelectedDetection(detection);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -719,13 +722,19 @@ const DroneDetectionPopup = ({ detection, age, droneTypes, droneDetectionHistory
|
|||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<span className="text-gray-600">First detected:</span>
|
<span className="text-gray-600">First detected:</span>
|
||||||
<span className="font-mono text-gray-900">
|
<span className="font-mono text-gray-900">
|
||||||
{format(new Date(firstDetection.device_timestamp), 'MMM dd, HH:mm:ss')}
|
{firstDetection.device_timestamp ?
|
||||||
|
format(new Date(firstDetection.device_timestamp), 'MMM dd, HH:mm:ss') :
|
||||||
|
'Unknown'
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<span className="text-gray-600">Latest detection:</span>
|
<span className="text-gray-600">Latest detection:</span>
|
||||||
<span className="font-mono text-gray-900">
|
<span className="font-mono text-gray-900">
|
||||||
{format(new Date(detection.device_timestamp), 'MMM dd, HH:mm:ss')}
|
{detection.device_timestamp ?
|
||||||
|
format(new Date(detection.device_timestamp), 'MMM dd, HH:mm:ss') :
|
||||||
|
'Unknown'
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{droneHistory.length > 1 && (
|
{droneHistory.length > 1 && (
|
||||||
|
|||||||
Reference in New Issue
Block a user