@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
5 lines • 368 B
JavaScript
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.
*/var setProductQuantity=function setProductQuantity(quantity){return{type:SET_PRODUCT_QUANTITY,quantity:quantity};};export default setProductQuantity;