-
{t("activeUnits")}
- {units.length <= 0 ? (
-
{t("noActiveUnits")}
- ) : (
-
- {units.map((player, idx) => {
- return (
-
- );
- })}
-
- )}
+
+ {units.length <= 0 ? (
+
{t("noActiveUnits")}
+ ) : (
+
+ {units.map((player, idx) => {
+ return (
+
+ );
+ })}
+
+ )}
- {tempUnit ?
setTempUnit(null)} unit={tempUnit} /> : null}
- ,
- portalRef,
- )
+ {tempUnit ?
setTempUnit(null)} unit={tempUnit} /> : null}
+
);
}
diff --git a/apps/client/src/components/dispatch/map/units/render-map-players.tsx b/apps/client/src/components/dispatch/map/units/render-map-players.tsx
index 2f82e8c80..0d1cb9122 100644
--- a/apps/client/src/components/dispatch/map/units/render-map-players.tsx
+++ b/apps/client/src/components/dispatch/map/units/render-map-players.tsx
@@ -1,35 +1,25 @@
import * as React from "react";
-import { ActiveMapUnits } from "./active-map-units";
import { PlayerMarker } from "./player-marker";
import { useMapPlayers } from "hooks/realtime/use-map-players";
+import { useDispatchMapState } from "state/mapState";
export function RenderMapPlayers() {
- const [openItems, setOpenItems] = React.useState