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.
24 lines
686 B
24 lines
686 B
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router-dom';
|
|
import { compose } from 'redux';
|
|
import { setFirstTimeFlowType } from '../../../store/actions';
|
|
import { getFirstTimeFlowTypeRoute } from '../../../selectors';
|
|
import Welcome from './select-action.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
nextRoute: getFirstTimeFlowTypeRoute(state),
|
|
metaMetricsId: state.metamask.metaMetricsId,
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setFirstTimeFlowType: (type) => dispatch(setFirstTimeFlowType(type)),
|
|
};
|
|
};
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(Welcome);
|
|
|