Sha256: 4063cb282cce0cacc13cf218359f0977725f5e8f12f5e07c808c6e1ca83816d1

Contents?: true

Size: 1.23 KB

Versions: 36

Compression:

Stored size: 1.23 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,
  selectPerPage,
  selectItemCount,
  selectSort,
  selectActionName,
  selectSelectedRows,
  selectAllRowsSelected,
  selectShowSelectAll,
  selectModalID,
  selectPermissions,
} from './TasksTableSelectors';

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

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

export const reducers = { tasksTable: reducer };

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
foreman-tasks-8.2.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-8.1.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-8.1.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-8.1.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-8.0.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-8.0.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-8.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-7.2.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-7.1.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-7.2.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-7.1.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-6.0.3 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-7.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-6.0.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-6.0.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-6.0.0 webpack/ForemanTasks/Components/TasksTable/index.js