Sha256: 342814cdf556454292993e2861da3e5056be30b2adda65a8daa8390982365a44

Contents?: true

Size: 943 Bytes

Versions: 64

Compression:

Stored size: 943 Bytes

Contents

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ConfirmModal } from './ConfirmModal';
import reducer from './ConfirmModalReducer';
import tasksActions from './ConfirmModalActions';
import {
  selectActionText,
  selectActionState,
  selectActionType,
  selectClicked,
  selectSelectedRowsLen,
} from './ConfirmModalSelectors';
import { selectAllRowsSelected } from '../../TasksTableSelectors';

const mapStateToProps = state => ({
  actionText: selectActionText(state),
  actionType: selectActionType(state),
  actionState: selectActionState(state),
  allRowsSelected: selectAllRowsSelected(state),
  clicked: selectClicked(state),
  selectedRowsLen: selectSelectedRowsLen(state),
});

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

export const reducers = { confirmModal: reducer };

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

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
foreman-tasks-2.0.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-2.0.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-2.0.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-1.2.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js