mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
feat: Merge sales branch
This commit is contained in:
11
client/src/containers/Purchases/Bill/withBillDetail.js
Normal file
11
client/src/containers/Purchases/Bill/withBillDetail.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { getBillByIdFactory } from 'store/Bills/bills.selectors';
|
||||
|
||||
export default () => {
|
||||
const getBillById = getBillByIdFactory();
|
||||
|
||||
const mapStateToProps = (state, props) => ({
|
||||
bill: getBillById(state, props),
|
||||
});
|
||||
return connect(mapStateToProps);
|
||||
};
|
||||
Reference in New Issue
Block a user