summaryrefslogtreecommitdiff
path: root/src/contexts
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-08 07:12:21 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-08 07:12:21 +0000
commit9468bb33e90badaad99d97df54c80da389c39093 (patch)
tree78e6f75daf1111fa2d5d1c5b665c0845958b1fae /src/contexts
parent1056bb941a642b3f173a036d5978cf79b94932b9 (diff)
parent079f8029445fdd243e267a4af7c7a4d5780afa24 (diff)
Merged in Feature/new-cart-popup (pull request #223)
<iman> update pop up quotation & cart
Diffstat (limited to 'src/contexts')
-rw-r--r--src/contexts/ProductCartContext.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/contexts/ProductCartContext.js b/src/contexts/ProductCartContext.js
index 19889e07..3a21d2e0 100644
--- a/src/contexts/ProductCartContext.js
+++ b/src/contexts/ProductCartContext.js
@@ -4,14 +4,13 @@ const ProductCartContext = createContext()
export const ProductCartProvider = ({ children }) => {
const [productCart, setProductCart] = useState(null)
- const [productQuotation, setProductQuotation] = useState(null)
- const [refreshQuotation, setRefreshQuotation] = useState(false)
const [refreshCart, setRefreshCart] = useState(false)
const [isLoading, setIsloading] = useState(false)
+ const [productQuotation, setProductQuotation] = useState(null)
return (
<ProductCartContext.Provider
- value={{ productCart, setProductCart, refreshCart, setRefreshCart, isLoading, setIsloading, productQuotation, setProductQuotation, refreshQuotation, setRefreshQuotation }}
+ value={{ productCart, setProductCart, refreshCart, setRefreshCart, isLoading, setIsloading, productQuotation, setProductQuotation}}
>
{children}
</ProductCartContext.Provider>