diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-11-19 16:51:54 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-11-19 16:51:54 +0700 |
| commit | d078c6adfd896b59f14e2a5116ecb977256674fa (patch) | |
| tree | db8f248ada154245063a359179f8d003875e0120 /src/lib/checkout/stores/stateCheckout.js | |
| parent | e5ad35b44effdea43e8e94effb92dc4e4f925554 (diff) | |
biteships
Diffstat (limited to 'src/lib/checkout/stores/stateCheckout.js')
| -rw-r--r-- | src/lib/checkout/stores/stateCheckout.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/checkout/stores/stateCheckout.js b/src/lib/checkout/stores/stateCheckout.js index 5d2904dd..97b0c64e 100644 --- a/src/lib/checkout/stores/stateCheckout.js +++ b/src/lib/checkout/stores/stateCheckout.js @@ -1,11 +1,16 @@ import { create } from "zustand"; -export const stateCheckout = create((set) => ({ +export const useCheckout = create((set) => ({ + products : null, checkWeigth : false, hasFlashSale : false, checkoutValidation : false, - setCheckWeigth : (checkWeigth) => set({ checkWeigth }), + biayaKirim : 0, + etd : null, + setCheckWeight : (checkWeigth) => set({ checkWeigth }), setHasFlashSale : (hasFlashSale) => set({ hasFlashSale }), setCheckoutValidation : (checkoutValidation) => set({ checkoutValidation }), + setBiayaKirim : (biayaKirim) => set({ biayaKirim }), + setProducts : (products) => set({ products }), }))
\ No newline at end of file |
