Sha256: 6a83b3e1c7b8d7811c48e439d5cd0163e567f911627b99b1be41ea8ebdc8c2a9

Contents?: true

Size: 1.18 KB

Versions: 19

Compression:

Stored size: 1.18 KB

Contents

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import TasksTablePage from './TasksTablePage';
import reducer from './TasksTableReducer';
import * as tableActions from './TasksTableActions';
import * as bulkActions from './TasksBulkActions';
import {
  selectStatus,
  selectError,
  selectResults,
  selectPagitation,
  selectItemCount,
  selectSort,
  selectActionName,
  selectSelectedRows,
  selectAllRowsSelected,
  selectShowSelectAll,
  selectModalID,
} from './TasksTableSelectors';

const mapStateToProps = state => ({
  status: selectStatus(state),
  error: selectError(state),
  sort: selectSort(state),
  results: selectResults(state),
  pagination: selectPagitation(state),
  itemCount: selectItemCount(state),
  actionName: selectActionName(state),
  selectedRows: selectSelectedRows(state),
  allRowsSelected: selectAllRowsSelected(state),
  showSelectAll: selectShowSelectAll(state),
  modalID: selectModalID(state),
});

const mapDispatchToProps = dispatch =>
  bindActionCreators({ ...tableActions, ...bulkActions }, dispatch);

export const reducers = { tasksTable: reducer };

export default connect(mapStateToProps, mapDispatchToProps)(TasksTablePage);

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
foreman-tasks-4.1.3 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.6 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.1.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.1.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.0.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.1.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.5 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.4 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-2.0.3 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.3 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-3.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-2.0.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-2.0.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-2.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-1.2.0 webpack/ForemanTasks/Components/TasksTable/index.js