UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

12 lines (11 loc) 348 B
import { SET_PRODUCT_QUANTITY } from "../constants"; /** * Creates the dispatched SET_PRODUCT_QUANTITY action object. * @param {number} quantity The product variant id. * @returns {Object} The dispatched action object. */ const setProductQuantity = quantity => ({ type: SET_PRODUCT_QUANTITY, quantity }); export default setProductQuantity;