Sha256: 8a3107021563393132161af2ad4aec80731866090a9e66dfb3fffe9b389f063e

Contents?: true

Size: 906 Bytes

Versions: 126

Compression:

Stored size: 906 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 {
  selectAccounts,
  selectPollingProcessID,
  selectError,
} from './AccountListSelectors';
import { selectFilterTerm } from '../InventoryFilter/InventoryFilterSelectors';

// map state to props
const mapStateToProps = state => ({
  accounts: selectAccounts(state),
  pollingProcessID: selectPollingProcessID(state),
  error: selectError(state),
  filterTerm: selectFilterTerm(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

126 entries across 126 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.2.0 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.60 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-10.0.4 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-11.1.0 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/AccountList/index.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/AccountList/index.js