Files
bigcapital/client/src/containers/FinancialStatements/ReceivableAgingSummary/withReceivableAgingSummaryTable.js
2020-06-14 14:19:18 +02:00

14 lines
465 B
JavaScript

import { getFinancialSheetIndexByQuery } from 'store/financialStatement/financialStatements.selectors';
import { connect } from 'react-redux';
const mapStateToProps = (state, props) => {
const { receivableAgingSummaryQuery } = props;
return {
receivableAgingSummaryIndex: getFinancialSheetIndexByQuery(
state.financialStatements.receivableAgingSummary.sheets,
receivableAgingSummaryQuery,
),
};
}
export default connect(mapStateToProps);