diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-08 04:44:00 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-08 04:44:00 +0000 |
| commit | 3a63f2e3958738747d0be07cd5d37620aed83b37 (patch) | |
| tree | 9448518b2eebeec2c859028dcfe104a044e3f314 /src/contexts | |
| parent | cf3bcefe77132c2ac40612a502eefaa88b56e7a8 (diff) | |
| parent | bad8abd263bd43c59dad8e61e2f5f35bfe5b7746 (diff) | |
Merged in Feature/new-cart-popup (pull request #220)
Feature/new cart popup
Diffstat (limited to 'src/contexts')
| -rw-r--r-- | src/contexts/ProductCartContext.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contexts/ProductCartContext.js b/src/contexts/ProductCartContext.js index 06e97563..19889e07 100644 --- a/src/contexts/ProductCartContext.js +++ b/src/contexts/ProductCartContext.js @@ -4,12 +4,14 @@ 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) return ( <ProductCartContext.Provider - value={{ productCart, setProductCart, refreshCart, setRefreshCart, isLoading, setIsloading }} + value={{ productCart, setProductCart, refreshCart, setRefreshCart, isLoading, setIsloading, productQuotation, setProductQuotation, refreshQuotation, setRefreshQuotation }} > {children} </ProductCartContext.Provider> |
