@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 338 B
JavaScript
import { RECEIVE_SUBMIT_REVIEW } from "../constants";
/**
* Dispatches the RECEIVE_SUBMIT_REVIEW action.
* @param {Object} review The received review data.
* @returns {Object} The RECEIVE_SUBMIT_REVIEW action.
*/
const receiveSubmitReview = review => ({
type: RECEIVE_SUBMIT_REVIEW,
review
});
export default receiveSubmitReview;