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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user