프라이싱 클릭 로딩바 추가

This commit is contained in:
basssy 2025-02-07 17:45:41 +09:00
parent 61fbc44ced
commit 846bcc5210

View File

@ -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)
})
}