mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-08 16:56:03 +00:00
fix(Map): New windows systems
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user