Sha256: fa617145006825121ba7c00a9c19454b6dec6ce394994e9455f0c37dbe1d5c77
Contents?: true
Size: 674 Bytes
Versions: 37
Compression:
Stored size: 674 Bytes
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from './SyncButtonActions'; import SyncButton from './SyncButton'; import { selectCloudToken } from '../../../InventorySettings/InventorySettingsSelectors'; import { selectTaskStatus } from './SyncButtonSelectors'; // map state to props const mapStateToProps = state => ({ cloudToken: selectCloudToken(state), status: selectTaskStatus(state), }); // map action dispatchers to props const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export connected component export default connect(mapStateToProps, mapDispatchToProps)(SyncButton);
Version data entries
37 entries across 37 versions & 1 rubygems