Fix : item Category Form Dialog

This commit is contained in:
elforjani3
2020-11-11 14:22:57 +02:00
parent 20e4c74422
commit 77aeaf2c60
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);
};