2019-01-23 16:25:34 +01:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import { withRouter } from 'react-router-dom'
|
|
|
|
import { compose } from 'recompose'
|
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-03-05 16:45:01 +01:00
|
|
|
const { welcomeScreenSeen, isInitialized, participateInMetaMetrics } = metamask
|
2019-01-23 16:25:34 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
welcomeScreenSeen,
|
|
|
|
isInitialized,
|
2019-03-05 16:45:01 +01:00
|
|
|
participateInMetaMetrics,
|
2019-01-23 16:25:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
closeWelcomeScreen: () => dispatch(closeWelcomeScreen()),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withRouter,
|
|
|
|
connect(mapStateToProps, mapDispatchToProps)
|
|
|
|
)(Welcome)
|