UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

12 lines (11 loc) 350 B
import { SUCCESS_CHECKOUT } from "../constants"; /** * Creates the dispatched SUCCESS_UPDATE_PRODUCTS_IN_CART action object. * @param {Object[]} products cart.items of product type * @returns {Object} The dispatched action object. */ const successCheckout = products => ({ type: SUCCESS_CHECKOUT, products }); export default successCheckout;