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-8.1.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.1.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.1.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.0.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.0.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-8.0.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-7.2.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-7.1.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-7.2.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-7.1.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-6.0.3 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-7.0.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-6.0.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-4.1.6 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-5.2.3 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-6.0.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-5.2.2 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-6.0.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-5.2.1 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
foreman-tasks-5.3.0 webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js