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
633 B
26 lines
633 B
4 years ago
|
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';
|
||
6 years ago
|
|
||
|
const mapStateToProps = ({ metamask }) => {
|
||
4 years ago
|
const { welcomeScreenSeen, participateInMetaMetrics } = metamask;
|
||
6 years ago
|
|
||
|
return {
|
||
|
welcomeScreenSeen,
|
||
6 years ago
|
participateInMetaMetrics,
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
5 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
6 years ago
|
return {
|
||
|
closeWelcomeScreen: () => dispatch(closeWelcomeScreen()),
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
|
export default compose(
|
||
|
withRouter,
|
||
4 years ago
|
connect(mapStateToProps, mapDispatchToProps),
|
||
4 years ago
|
)(Welcome);
|