mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +01:00
101fe0b27a
* 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
31 lines
682 B
JavaScript
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);
|