Files
bigcapital/client/src/containers/Expenses/withExpenseDetail.js
Ahmed Bouhuolia 282da55d08 - feat: Filter expense and payment accounts on expense form.
- 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.
2020-07-06 21:22:27 +02:00

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);
};