mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
- feat: Make journal errors with receivable and payable accounts. - fix: Handle database big numbers. - fix: Indexing lines when add a new line on make journal form. - fix: Abstruct accounts type component.
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getExpenseByIdFactory } from 'store/expenses/expenses.selectors';
|
|
|
|
export default () => {
|
|
const getExpenseById = getExpenseByIdFactory();
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
expense: getExpenseById(state, props),
|
|
});
|
|
return connect(mapStateToProps);
|
|
}; |