Sha256: 01afda5b604dbba9beb9c302dcc117a2ae364ec3df57dd60a9bae6baea27059d

Contents?: true

Size: 793 Bytes

Versions: 6

Compression:

Stored size: 793 Bytes

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import * as actions from './AccountListActions';
import reducer from './AccountListReducer';
import AccountList from './AccountList';
import {
  selectStatuses,
  selectPollingProcessID,
  selectError,
} from './AccountListSelectors';

// map state to props
const mapStateToProps = state => ({
  statuses: selectStatuses(state),
  pollingProcessID: selectPollingProcessID(state),
  error: selectError(state),
});

// map action dispatchers to props
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);

// export reducers
export const reducers = { accountsList: reducer };

// export connected component
export default connect(
  mapStateToProps,
  mapDispatchToProps
)(AccountList);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_inventory_upload-1.0.0.beta7 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_inventory_upload-1.0.0.beta6 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_inventory_upload-1.0.0.beta5 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_inventory_upload-1.0.0.beta4 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_inventory_upload-1.0.0.beta3 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_inventory_upload-1.0.0.beta2 webpack/ForemanInventoryUpload/Components/AccountList/index.js