mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
Feat : Vendors
This commit is contained in:
10
client/src/containers/Vendors/withVendorDetail.js
Normal file
10
client/src/containers/Vendors/withVendorDetail.js
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user