Sha256: c242d627dad1b788c7471234f93e5b8d58a339530b35a9174e44b34c34faa963

Contents?: true

Size: 992 Bytes

Versions: 6

Compression:

Stored size: 992 Bytes

Contents

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import TasksTablePage from './TasksTablePage';
import reducer from './TasksTableReducer';
import * as actions from './TasksTableActions';
import {
  selectStatus,
  selectError,
  selectResults,
  selectPagitation,
  selectItemCount,
  selectSort,
  selectActionName,
  selectSelectedRows,
  selectModalStatus,
} 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),
  modalStatus: selectModalStatus(state),
});
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);

export const reducers = { tasksTable: reducer };

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/TasksTable/index.js