@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 336 B
JavaScript
import { SET_COUPON_FIELD_VALUE } from "../constants";
/**
* Creates the dispatched SET_COUPON_FIELD_VALUE action object.
* @param {string} value Value
* @returns {Object} The dispatched action object.
*/
const setCouponFieldValue = (value = '') => ({
type: SET_COUPON_FIELD_VALUE,
value
});
export default setCouponFieldValue;