1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 21:57:06 +01:00
metamask-extension/ui/pages/first-time-flow/welcome/welcome.container.js
Dan J Miller 99f753d73f Metrics adjustments (#15313)
* Don't send errors to sentry if users have not opted-in to participate in metametrics

* Don't capture opt-out metrics

* Move the metrics-opt in screen to immediately after the welcome screen

* Ensure that global.getSentryState is set in the background

* Fix e2e tests after rearranging onboardin flow

* Fix unit tests

* More e2e test fixes

* Remove unnecessary wrappers around capture exception
2022-07-22 18:19:36 -02:30

31 lines
682 B
JavaScript

import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { compose } from 'redux';
import { closeWelcomeScreen } from '../../../store/actions';
import Welcome from './welcome.component';
const mapStateToProps = ({ metamask }) => {
const {
welcomeScreenSeen,
participateInMetaMetrics,
isInitialized,
} = metamask;
return {
welcomeScreenSeen,
participateInMetaMetrics,
isInitialized,
};
};
const mapDispatchToProps = (dispatch) => {
return {
closeWelcomeScreen: () => dispatch(closeWelcomeScreen()),
};
};
export default compose(
withRouter,
connect(mapStateToProps, mapDispatchToProps),
)(Welcome);