mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
12 lines
349 B
JavaScript
12 lines
349 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getPaymentMadeByIdFactory } from 'store/PaymentMades/paymentMade.selector';
|
|
|
|
export default () => {
|
|
const getPaymentMadeById = getPaymentMadeByIdFactory();
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
paymentMade: getPaymentMadeById(state, props),
|
|
});
|
|
return connect(mapStateToProps);
|
|
};
|