mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
27 lines
755 B
JavaScript
27 lines
755 B
JavaScript
import {connect} from 'react-redux';
|
|
import {
|
|
fetchBalanceSheet,
|
|
} from 'store/financialStatement/financialStatements.actions';
|
|
import {
|
|
getFinancialSheetIndexByQuery,
|
|
getFinancialSheet,
|
|
getFinancialSheetsAccounts,
|
|
getFinancialSheetsColumns,
|
|
} from 'store/financialStatement/financialStatements.selectors';
|
|
|
|
|
|
export const mapStateToProps = (state, props) => {
|
|
const sheetIndex = props.balanceSheetIndex;
|
|
|
|
return {
|
|
balanceSheetAccounts: props.getBalanceSheetAccounts(sheetIndex),
|
|
balanceSheetQuery: props.getBalanceSheetQuery(sheetIndex),
|
|
balanceSheetColumns: props.getBalanceSheetColumns(sheetIndex),
|
|
};
|
|
};
|
|
|
|
export const mapDispatchToProps = (dispatch) => ({
|
|
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps); |