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