diff --git a/src/components/monitoringMenu.tsx b/src/components/monitoringMenu.tsx index 3c14629..60b3fe1 100644 --- a/src/components/monitoringMenu.tsx +++ b/src/components/monitoringMenu.tsx @@ -29,11 +29,10 @@ export default function MonitoringMenu({ monitoredVessels, zoomToVessel }: IMoni {!isCollapsed && ( <> -
MMSI
-Trust
-Reason
-Find vessel
+MMSI
+Trust
+Reason
{monitoredVessel.mmsi}
-{(Math.round(monitoredVessel.trustworthiness * 1000) / 10).toFixed(2)}%
-- {monitoredVessel.reason} -
+{monitoredVessel.mmsi}
+{(Math.round(monitoredVessel.trustworthiness * 1000) / 10).toFixed(2)}%
+ {selectedVesselmmsi === monitoredVessel.mmsi ? ( ++ {monitoredVessel.reason} +
+ )} - {selectedVesselmmsi === monitoredVessel.mmsi && ( + {selectedVesselmmsi === monitoredVessel.mmsi ? ( - )} - - {selectedVesselmmsi !== monitoredVessel.mmsi && ( + ) : (