You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
711 B
26 lines
711 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import { compose } from 'redux';
|
||
|
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props';
|
||
|
import { setParticipateInMetaMetrics } from '../../../../store/actions';
|
||
|
import MetaMetricsOptInModal from './metametrics-opt-in-modal.component';
|
||
6 years ago
|
|
||
6 years ago
|
const mapStateToProps = (_, ownProps) => {
|
||
4 years ago
|
const { unapprovedTxCount } = ownProps;
|
||
6 years ago
|
|
||
|
return {
|
||
|
unapprovedTxCount,
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
5 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
6 years ago
|
return {
|
||
4 years ago
|
setParticipateInMetaMetrics: (val) =>
|
||
|
dispatch(setParticipateInMetaMetrics(val)),
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
|
export default compose(
|
||
|
withModalProps,
|
||
|
connect(mapStateToProps, mapDispatchToProps),
|
||
4 years ago
|
)(MetaMetricsOptInModal);
|