Sha256: 8365584ca83771e63bc9c9f23818821fea0f564b89f08e654d11483ffc060c91
Contents?: true
Size: 980 Bytes
Versions: 41
Compression:
Stored size: 980 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as manifestActions from './ManifestActions'; import * as organizationActions from '../../Organizations/OrganizationActions'; import * as tasksActions from '../../Tasks/TaskActions'; import history from './ManifestHistoryReducer'; import ManifestModal from './ManageManifestModal'; import './Manifest.scss'; // map state to props const mapStateToProps = state => ({ organization: state.katello.organization, manifestHistory: state.katello.manifestHistory, taskDetails: state.katello.manifestHistory.taskDetails, }); // map action dispatchers to props const actions = { ...manifestActions, ...organizationActions, ...tasksActions }; const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export reducers export const manifestHistory = history; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(ManifestModal);
Version data entries
41 entries across 41 versions & 1 rubygems