From e578dc70553cf905231ac431a75235fe48ed90b1 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Fri, 19 Sep 2025 14:40:58 +0200 Subject: [PATCH] Fix jwt-token --- client/src/pages/Devices.jsx | 4 ++-- client/src/pages/MapView.jsx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/pages/Devices.jsx b/client/src/pages/Devices.jsx index f7d0521..4a379b7 100644 --- a/client/src/pages/Devices.jsx +++ b/client/src/pages/Devices.jsx @@ -530,7 +530,7 @@ const Devices = () => { onClick={() => handleViewOnMap(selectedDevice)} className="flex-1 bg-primary-100 text-primary-700 py-2 px-3 rounded hover:bg-primary-200 transition-colors text-sm font-medium" > - View on Map + {t('devices.viewOnMap')} )} @@ -538,7 +538,7 @@ const Devices = () => { onClick={() => setShowDetailsModal(false)} className="flex-1 bg-gray-100 text-gray-700 py-2 px-3 rounded hover:bg-gray-200 transition-colors text-sm font-medium" > - Close + {t('devices.close')} diff --git a/client/src/pages/MapView.jsx b/client/src/pages/MapView.jsx index f5ddff8..48393fa 100644 --- a/client/src/pages/MapView.jsx +++ b/client/src/pages/MapView.jsx @@ -610,25 +610,25 @@ const MapView = () => { {/* Map Legend - Fixed positioning and visibility */}
-
Map Legend
+
{t('map.mapLegend')}
- Device Online + {t('map.deviceOnline')}
- Device Detecting + {t('map.deviceDetecting')}
- Device Offline + {t('map.deviceOffline')}
{showDroneDetections && ( <>
-
Drone Detection Rings:
-
Rings show estimated detection range based on RSSI
+
{t('map.droneDetectionRings')}:
+
{t('map.ringsDescription')}