refactoring: expenses landing list.

refactoring: customers landing list.
refactoring: vendors landing list.
refactoring: manual journals landing list.
This commit is contained in:
a.bouhuolia
2021-02-10 18:35:19 +02:00
parent 6e10ed0721
commit c68b4ca9ba
170 changed files with 2835 additions and 4430 deletions

View File

@@ -0,0 +1,14 @@
import { connect } from 'react-redux';
import { getCustomersTableStateFactory } from 'store/customers/customers.selectors';
export default (mapState) => {
const getCustomersTableState = getCustomersTableStateFactory();
const mapStateToProps = (state, props) => {
const mapped = {
customersTableState: getCustomersTableState(state, props),
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
};