Sha256: cc9458c46e2285efff4c16ebc23dc7135fec43394d2275bc82764910521a47d2

Contents?: true

Size: 981 Bytes

Versions: 2

Compression:

Stored size: 981 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,
  selectClicked,
} 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),
  clicked: selectClicked(state),
});

const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);

export const reducers = { tasksTable: reducer };

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman-tasks-1.1.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-1.0.1 webpack/ForemanTasks/Components/TasksTable/index.js