Sha256: 317a1583e351e1bb89eea198fe9817412f8b8523c944dc35165dd8edbb642e59

Contents?: true

Size: 762 Bytes

Versions: 2

Compression:

Stored size: 762 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 '../../../InventorySettings/InventorySettingsSelectors';
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

2 entries across 2 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
foreman_rh_cloud-3.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js