Merge remote-tracking branch 'origin/master'

This commit is contained in:
Ahmed Bouhuolia
2020-11-11 15:21:12 +02:00
2 changed files with 73 additions and 68 deletions

View File

@@ -1,16 +1,13 @@
import { connect } from 'react-redux';
import {
getItemCategoryByIdFactory,
} from 'store/itemCategories/ItemsCategories.selectors';
import { getItemCategoryByIdFactory } from 'store/itemCategories/ItemsCategories.selectors';
export default () => {
const getCategoryId = getItemCategoryByIdFactory();
const mapStateToProps = (state, props) => {
return {
itemCategory: getCategoryId(state, props),
itemCategoryDetail: getCategoryId(state, props),
};
};
};
return connect(mapStateToProps);
};