Sha256: 7a33830b5f6428a161b678fbc673ae5401c7a3c5fd8264597c4560a88618e48a

Contents?: true

Size: 750 Bytes

Versions: 31

Compression:

Stored size: 750 Bytes

Contents

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

import * as actions from './SyncButtonActions';
import reducer from './SyncButtonReducer';
import SyncButton from './SyncButton';
import { selectCloudToken } from '../../../AccountList/AccountListSelectors';
import { selectStatus } from './SyncButtonSelectors';

// map state to props
const mapStateToProps = state => ({
  cloudToken: selectCloudToken(state),
  status: selectStatus(state),
});

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

export const reducers = { inventorySync: reducer };

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-2.0.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-0.9.12 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-1.0.12 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-2.0.12 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-0.9.11 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-1.0.11 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-2.0.11 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-0.9.10 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-1.0.10 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-2.0.10 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js