Server IP : 172.67.158.161 / Your IP : 18.221.20.159 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/base/context/cart-checkout/cart/ |
Upload File : |
/** * Internal dependencies */ import { ShippingDataProvider } from '../shipping'; import { CheckoutStateProvider } from '../checkout-state'; import { PaymentMethodDataProvider } from '../payment-methods'; /** * Cart provider * This wraps the Cart and provides an api interface for the Cart to * children via various hooks. * * @param {Object} props Incoming props for the provider. * @param {Object} [props.children] The children being wrapped. * @param {string} [props.redirectUrl] Initialize what the cart will * redirect to after successful * submit. */ export const CartProvider = ( { children, redirectUrl } ) => { return ( <CheckoutStateProvider redirectUrl={ redirectUrl } isCart={ true }> <ShippingDataProvider> <PaymentMethodDataProvider> { children } </PaymentMethodDataProvider> </ShippingDataProvider> </CheckoutStateProvider> ); };