Files
bigcapital/client/src/containers/Customers/withCustomerDetail.js
2020-06-14 13:27:36 +02:00

9 lines
260 B
JavaScript

import { connect } from 'react-redux';
import { getCustomerById } from 'store/customers/customers.reducer';
const mapStateToProps = (state, props) => ({
customerDetail: getCustomerById(state, props.customerId),
});
export default connect(mapStateToProps);