UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

12 lines (11 loc) 335 B
import { REQUEST_CATEGORY } from "../constants"; /** * Dispatches the REQUEST_CATEGORY action. * @param {string} categoryId The ID of the category to be requested. * @return {Object} The REQUEST_CATEGORY action. */ const requestCategory = categoryId => ({ type: REQUEST_CATEGORY, categoryId }); export default requestCategory;