From 846bcc52106f3686f78ae5484689353340e31927 Mon Sep 17 00:00:00 2001 From: basssy Date: Fri, 7 Feb 2025 17:45:41 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=9D=BC=EC=9D=B4=EC=8B=B1=20?= =?UTF-8?q?=ED=81=B4=EB=A6=AD=20=EB=A1=9C=EB=94=A9=EB=B0=94=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index e0a58406..609ba73e 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -23,6 +23,7 @@ import { useSearchParams } from 'next/navigation' import { usePlan } from '@/hooks/usePlan' import { usePopup } from '@/hooks/usePopup' import { useSwal } from '@/hooks/useSwal' +import { QcastContext } from '@/app/QcastProvider' export default function Estimate({}) { const [uniqueData, setUniqueData] = useState([]) @@ -81,6 +82,7 @@ export default function Estimate({}) { const [specialNoteList, setSpecialNoteList] = useState([]) const [popShowSpecialNoteList, setPopShowSpecialNoteList] = useState([]) + const { setIsGlobalLoading } = useContext(QcastContext) const globalLocaleState = useRecoilValue(globalLocaleStore) const { get, post, promisePost } = useAxios(globalLocaleState) @@ -490,6 +492,7 @@ export default function Estimate({}) { } } + setIsGlobalLoading(true) await promisePost({ url: '/api/estimate/price/item-price-list', data: param }).then((res) => { let updateList = [] if (res) { @@ -537,6 +540,7 @@ export default function Estimate({}) { } } } + setIsGlobalLoading(false) }) }