diff --git a/src/hooks/useEstimate.js b/src/hooks/useEstimate.js index 5192ec0c..a535de49 100644 --- a/src/hooks/useEstimate.js +++ b/src/hooks/useEstimate.js @@ -22,10 +22,10 @@ export function useEstimate() { /** * 도면 견적서 저장 + * + * @param {Object} estimateParam - 견적서 저장 데이터 */ const saveEstimate = async (estimateParam) => { - // 로딩 임시 주석 - // setIsGlobalLoading(true) const userId = loginUserState.userId const saleStoreId = managementStateLoaded.saleStoreId @@ -56,7 +56,7 @@ export function useEstimate() { await promisePost({ url: '/api/estimate/save-estimate', data: saveEstimateData }) .then(async () => { - // 견적서 저장이 완료되면 견적서 페이지로 이동 + /* 견적서 저장이 완료되면 견적서 페이지로 이동 */ moveEstimate(planNo, objectNo) }) .catch((error) => { @@ -67,6 +67,9 @@ export function useEstimate() { /** * 견적서 페이지로 이동 + * + * @param {string} planNo - 플랜번호 + * @param {string} objectNo - 물건번호 */ const moveEstimate = (planNo, objectNo) => { router.push(`/floor-plan/estimate/5?pid=${planNo}&objectNo=${objectNo}`)