Sha256: 07e20de8bba8851e2d1bacef7010a1a02fdc2a0b257f8296f1ea859ac2b70875
Contents?: true
Size: 1.36 KB
Versions: 4
Compression:
Stored size: 1.36 KB
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as subscriptionActions from './SubscriptionActions'; import * as taskActions from '../Tasks/TaskActions'; import * as settingActions from '../../move_to_foreman/Settings/SettingsActions'; import * as tableActions from '../Settings/Tables/TableActions'; import * as manifestActions from './Manifest/ManifestActions'; import reducer from './SubscriptionReducer'; import { SUBSCRIPTION_TABLE_NAME } from './SubscriptionConstants'; import SubscriptionsPage from './SubscriptionsPage'; // map state to props const mapStateToProps = (state) => { const subscriptionTableSettings = state.katello.settings.tables[SUBSCRIPTION_TABLE_NAME] || {}; return { organization: state.katello.organization, subscriptions: state.katello.subscriptions, tasks: state.katello.subscriptions.tasks, subscriptionTableSettings, taskDetails: state.katello.manifestHistory.taskDetails, }; }; // map action dispatchers to props const actions = { ...subscriptionActions, ...taskActions, ...settingActions, ...tableActions, ...manifestActions, }; const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export reducers export const subscriptions = reducer; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(SubscriptionsPage);
Version data entries
4 entries across 4 versions & 1 rubygems