mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
WIP Financial statements.
This commit is contained in:
27
client/src/connectors/BalanceSheetTable.connect.js
Normal file
27
client/src/connectors/BalanceSheetTable.connect.js
Normal file
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user