2021-02-04 19:15:23 +01:00
|
|
|
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';
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
const mapStateToProps = ({ metamask }) => {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { welcomeScreenSeen, participateInMetaMetrics } = metamask;
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
welcomeScreenSeen,
|
2019-03-05 16:45:01 +01:00
|
|
|
participateInMetaMetrics,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2019-01-23 16:25:34 +01:00
|
|
|
|
2020-02-15 21:34:12 +01:00
|
|
|
const mapDispatchToProps = (dispatch) => {
|
2019-01-23 16:25:34 +01:00
|
|
|
return {
|
|
|
|
closeWelcomeScreen: () => dispatch(closeWelcomeScreen()),
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withRouter,
|
2020-07-14 17:20:41 +02:00
|
|
|
connect(mapStateToProps, mapDispatchToProps),
|
2021-02-04 19:15:23 +01:00
|
|
|
)(Welcome);
|