Sha256: 9cd1d2471a1f8c8c35289fbe35fb850811fb7097dd7e6d75deeef356e03dacee

Contents?: true

Size: 1.25 KB

Versions: 83

Compression:

Stored size: 1.25 KB

Contents

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

import * as actions from './InsightsTableActions';
import InsightsTable from './InsightsTable';
import InsightsTableReducer from './InsightsTableReducer';
import {
  selectPage,
  selectPerPage,
  selectSearch,
  selectStatus,
  selectSortBy,
  selectSortOrder,
  selectHits,
  selectItemCount,
  selectSelectedIds,
  selectShowSelectAllAlert,
  selectError,
  selectIsAllSelected,
} from './InsightsTableSelectors';

// map state to props
const mapStateToProps = state => ({
  query: selectSearch(state),
  page: selectPage(state),
  perPage: selectPerPage(state),
  status: selectStatus(state),
  sortBy: selectSortBy(state),
  sortOrder: selectSortOrder(state),
  hits: selectHits(state),
  itemCount: selectItemCount(state),
  selectedIds: selectSelectedIds(state),
  showSelectAllAlert: selectShowSelectAllAlert(state),
  error: selectError(state),
  isAllSelected: selectIsAllSelected(state),
});

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

// export reducers
export const reducers = { table: InsightsTableReducer };

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

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
foreman_rh_cloud-8.0.48 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-8.0.47 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-8.0.46 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-6.0.45 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.46 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.45 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-7.0.46 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.44 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-7.0.45 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-6.0.44 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.43 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-4.0.36 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-3.0.33 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-6.0.42.2 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-6.0.42.1 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-6.0.43 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.42 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-6.0.42 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.41 webpack/InsightsCloudSync/Components/InsightsTable/index.js
foreman_rh_cloud-5.0.39 webpack/InsightsCloudSync/Components/InsightsTable/index.js