Sha256: 1a16e58a6d7d1cc54482580ec61dd2841b0bfc21e61bd74a911c952750d48964

Contents?: true

Size: 1.06 KB

Versions: 144

Compression:

Stored size: 1.06 KB

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import * as actions from './DashboardActions';
import { restartProcess } from '../AccountList/AccountListActions';
import reducer from './DashboardReducer';

import Dashboard from './Dashboard';
import {
  selectUploading,
  selectGenerating,
  selectPollingProcessID,
  selectActiveTab,
  selectShowFullScreen,
} from './DashboardSelectors';

// map state to props
const mapStateToProps = (state, { accountID }) => ({
  uploading: selectUploading(state, accountID),
  generating: selectGenerating(state, accountID),
  pollingProcessID: selectPollingProcessID(state, accountID),
  activeTab: selectActiveTab(state, accountID),
  showFullScreen: selectShowFullScreen(state, accountID),
});

// map action dispatchers to props
const mapDispatchToProps = dispatch =>
  bindActionCreators({ ...actions, restartProcess }, dispatch);

// export reducers
export const reducers = { dashboard: reducer };

// export connected component
export default connect(mapStateToProps, mapDispatchToProps)(Dashboard);

Version data entries

144 entries across 144 versions & 2 rubygems

Version Path
foreman_rh_cloud-11.1.0 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/Components/Dashboard/index.js
foreman_rh_cloud-7.0.48 webpack/ForemanInventoryUpload/Components/Dashboard/index.js