Feat : Vendors

This commit is contained in:
elforjani3
2020-11-18 15:12:22 +02:00
parent c0b16ad0ff
commit e97da1b3fe
21 changed files with 1347 additions and 73 deletions

View File

@@ -0,0 +1,10 @@
import { connect } from 'react-redux';
import { getVendorByIdFactory } from 'store/vendors/vendors.selectors';
export default () => {
const getVendorById = getVendorByIdFactory();
const mapStateToProps = (state, props) => ({
vendor: getVendorById(state, props),
});
return connect(mapStateToProps);
};