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

@@ -11,7 +11,7 @@ const Characters = ({ data }: { data: CharacterTypeRaw[] }) => {
const handleSelect = useCallback(
(character: CharacterTypeRaw) => {
mapRef.current?.command(Commands.selectSystem, character?.location?.solar_system_id?.toString());
mapRef.current?.command(Commands.centerSystem, character?.location?.solar_system_id?.toString());
},
[mapRef],
);