Pass system and region to system mapping

Pass system and region to the system mapping function to avoid redundant API calls.
This commit is contained in:
gpt-engineer-app[bot]
2025-06-14 15:46:57 +00:00
parent f7a1394cb1
commit ad19dbca53
2 changed files with 7 additions and 12 deletions

View File

@@ -135,7 +135,8 @@ export const RegionMap: React.FC<RegionMapProps> = ({
}, [systems, focusSystem, isCompact]);
const handleSystemClick = (systemName: string) => {
navigate(`/systems/${systemName}`);
// Pass the region name when navigating to a system
navigate(`/systems/${systemName}?region=${regionName}`);
};
const handleMouseDown = useCallback((e: React.MouseEvent) => {