Sha256: 6da012cd022c7f735fe6c9e402eaef794e6fa4672dcdae7a0e4e55d164142883
Contents?: true
Size: 843 Bytes
Versions: 160
Compression:
Stored size: 843 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import reducer from './SubscriptionDetailReducer'; import { loadProducts } from '../../Products/ProductActions'; import * as subscriptionDetailActions from './SubscriptionDetailActions'; import SubscriptionDetails from './SubscriptionDetails'; // map state to props const mapStateToProps = state => ({ subscriptionDetails: state.katello.subscriptionDetails, }); // map action dispatchers to props const actions = { ...subscriptionDetailActions, loadProducts }; const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); export const subscriptionDetails = reducer; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(withRouter(SubscriptionDetails));
Version data entries
160 entries across 160 versions & 1 rubygems