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