mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
14 lines
465 B
JavaScript
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); |