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-10.0.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-10.0.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.2.3 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.2.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.2.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.2.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.1.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.0.4 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.1.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.0.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.0.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.3.3 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-9.0.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.2.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.1.4 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.3.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.3.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.1.3 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.3.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.2.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js