2019-01-23 16:25:34 +01:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import { withRouter } from 'react-router-dom'
|
2020-02-24 23:58:26 +01:00
|
|
|
import { compose } from 'redux'
|
2019-03-22 00:03:30 +01:00
|
|
|
import { closeWelcomeScreen } from '../../../store/actions'
|
2019-01-23 16:25:34 +01:00
|
|
|
import Welcome from './welcome.component'
|
|
|
|
|
|
|
|
const mapStateToProps = ({ metamask }) => {
|
2019-12-08 04:10:47 +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,
|
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()),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withRouter,
|
|
|
|
connect(mapStateToProps, mapDispatchToProps)
|
|
|
|
)(Welcome)
|