feat(Map): Follow Character on Map and auto select their current system

fixes #34
This commit is contained in:
Dmitry Popov
2024-10-11 12:11:33 +04:00
parent 912cad42ac
commit 2f672ae970
28 changed files with 517 additions and 74 deletions

View File

@@ -91,7 +91,7 @@ export const RoutesList = ({ data, onContextMenu }: RoutesListProps) => {
const { mapRef } = useMapRootState();
const handleClick = useCallback(
(systemId: number) => mapRef.current?.command(Commands.selectSystem, systemId.toString()),
(systemId: number) => mapRef.current?.command(Commands.centerSystem, systemId.toString()),
[mapRef],
);