From 3fd47b924c0ed77a77b546760bbcd336da9cd756 Mon Sep 17 00:00:00 2001 From: pedro Date: Tue, 10 Dec 2024 05:51:16 -0300 Subject: [PATCH] foundation to accept route id argument --- src/components/Mapper/Mapper.jsx | 1 + src/components/Mapper/TabPanel/EncountersPanel.jsx | 2 +- src/components/Mapper/TabPanel/MapperTabPanel.jsx | 2 ++ src/utils/dex/encountersConstants.js | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Mapper/Mapper.jsx b/src/components/Mapper/Mapper.jsx index 69ea5983ae..68069f82f3 100644 --- a/src/components/Mapper/Mapper.jsx +++ b/src/components/Mapper/Mapper.jsx @@ -702,6 +702,7 @@ export const Mapper = ({ pokemonList }) => { selectedTrainer={selectedTrainer} setSelectedTrainer={setSelectedTrainer} openTrainerModal={openTrainerModal} + routeId={selectedZoneId} /> { +const EncountersPanel = ({ encOptions, handleOptionChange, encounterList, pokemon, routeId }) => { const { colorMode, setColorMode } = useColorMode(); const modeChangeTextColor = colorMode === "dark" ? "#F5FBF5" : "#000000"; const boolOptions = Object.keys(encOptions).filter((key) => typeof encOptions[key] === 'boolean'); diff --git a/src/components/Mapper/TabPanel/MapperTabPanel.jsx b/src/components/Mapper/TabPanel/MapperTabPanel.jsx index 71450f8690..737205c8dc 100644 --- a/src/components/Mapper/TabPanel/MapperTabPanel.jsx +++ b/src/components/Mapper/TabPanel/MapperTabPanel.jsx @@ -16,6 +16,7 @@ export const MapperTabPanel = ({ selectedTrainer, setSelectedTrainer, openTrainerModal, + routeId }) => { return ( @@ -24,6 +25,7 @@ export const MapperTabPanel = ({ handleOptionChange={handleOptionChange} encounterList={encounterList} pokemon={pokemonName} + routeId={routeId} />