fix(Map): New windows systems

This commit is contained in:
achichenkov
2025-01-11 13:36:21 +03:00
parent e77a42dfda
commit b100052453
9 changed files with 161 additions and 62 deletions

View File

@@ -90,6 +90,16 @@ export const WindowManager: React.FC<WindowManagerProps> = ({ windows: initialWi
zIndex: index + 1,
})),
);
useEffect(() => {
setWindows(
initialWindows.map((window, index) => ({
...window,
zIndex: index + 1,
})),
);
}, [initialWindows]);
const containerRef = useRef<HTMLDivElement | null>(null);
const activeWindowIdRef = useRef<string | number | null>(null);
const actionTypeRef = useRef<ActionType | null>(null);