Files
bigcapital/client/src/containers/Accounts/withAccounts.js
a.bouhuolia c68b4ca9ba refactoring: expenses landing list.
refactoring: customers landing list.
refactoring: vendors landing list.
refactoring: manual journals landing list.
2021-02-10 18:35:19 +02:00

19 lines
499 B
JavaScript

import { connect } from 'react-redux';
import {
getAccountsTableStateFactory,
} from 'store/accounts/accounts.selectors';
export default (mapState) => {
const getAccountsTableState = getAccountsTableStateFactory();
const mapStateToProps = (state, props) => {
const mapped = {
accountsTableState: getAccountsTableState(state, props),
accountsSelectedRows: null,
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
};