mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
re-structure to monorepo.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// @ts-nocheck
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user