From 137c2685615b46cac2c393b7cef22808a9a3471b Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Wed, 20 Nov 2024 16:46:12 +0900 Subject: [PATCH] fix: modify variable name --- src/app/floor-plan/FloorPlanProvider.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/floor-plan/FloorPlanProvider.js b/src/app/floor-plan/FloorPlanProvider.js index 463b5ad4..fb6e6460 100644 --- a/src/app/floor-plan/FloorPlanProvider.js +++ b/src/app/floor-plan/FloorPlanProvider.js @@ -25,8 +25,8 @@ const defaultEstimateData = { export const FloorPlanContext = createContext({ floorPlanState: {}, setFloorPlanState: () => {}, - estimateState: {}, - setEstimateState: () => {}, + estimateContextState: {}, + setEstimateContextState: () => {}, }) const FloorPlanProvider = ({ children }) => { @@ -37,14 +37,16 @@ const FloorPlanProvider = ({ children }) => { toggleRotate: false, }) - const [estimateState, setEstimateState] = useReducer(reducer, defaultEstimateData) + const [estimateContextState, setEstimateContextState] = useReducer(reducer, defaultEstimateData) useEffect(() => { console.log('🚀 ~ floorPlanState:', floorPlanState) }, [floorPlanState]) return ( - {children} + + {children} + ) }