Sha256: a27cea0fe882f860e369a9aee5b0148bf8b707d502f6a274b1a6691accfbb6df

Contents?: true

Size: 1.2 KB

Versions: 19

Compression:

Stored size: 1.2 KB

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {
  selectAPIResponse,
  selectAPIStatus,
  selectAPIErrorMessage,
} from 'foremanReact/redux/API/APISelectors';
import * as actions from './RemediationActions';
import RemediationModal from './RemediationModal';
import { REMEDIATIONS_API_KEY } from './RemediationTableConstants';
import {
  selectExperimental,
  selectIsAllSelected,
  selectSearch,
  selectSelectedIds,
} from '../InsightsTable/InsightsTableSelectors';

// map state to props
const mapStateToProps = state => ({
  selectedIds: selectSelectedIds(state),
  remediations: selectAPIResponse(state, REMEDIATIONS_API_KEY).hits || [],
  status: selectAPIStatus(state, REMEDIATIONS_API_KEY),
  error: selectAPIErrorMessage(state, REMEDIATIONS_API_KEY),
  itemCount: selectAPIResponse(state, REMEDIATIONS_API_KEY).itemCount || 0,
  isAllSelected: selectIsAllSelected(state),
  query: selectSearch(state),
  isExperimentalMode: selectExperimental(state),
});

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

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.33 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.32 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.29 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.28 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.26 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.25 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-4.0.25 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.24.1 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-4.0.24.1 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.24 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-4.0.24 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.23 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-4.0.23 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.22 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-4.0.22 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-4.0.21.1 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.21.1 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.21 webpack/InsightsCloudSync/Components/RemediationModal/index.js
foreman_rh_cloud-3.0.20 webpack/InsightsCloudSync/Components/RemediationModal/index.js