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.
29 lines
774 B
29 lines
774 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import { getOnboardingInitiator } from '../../../selectors';
|
||
|
import { setCompletedOnboarding } from '../../../store/actions';
|
||
|
import EndOfFlow from './end-of-flow.component';
|
||
6 years ago
|
|
||
6 years ago
|
const firstTimeFlowTypeNameMap = {
|
||
|
create: 'New Wallet Created',
|
||
4 years ago
|
import: 'New Wallet Imported',
|
||
4 years ago
|
};
|
||
6 years ago
|
|
||
5 years ago
|
const mapStateToProps = (state) => {
|
||
4 years ago
|
const {
|
||
|
metamask: { firstTimeFlowType },
|
||
4 years ago
|
} = state;
|
||
6 years ago
|
|
||
|
return {
|
||
|
completionMetaMetricsName: firstTimeFlowTypeNameMap[firstTimeFlowType],
|
||
5 years ago
|
onboardingInitiator: getOnboardingInitiator(state),
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
4 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
|
return {
|
||
|
setCompletedOnboarding: () => dispatch(setCompletedOnboarding()),
|
||
4 years ago
|
};
|
||
|
};
|
||
4 years ago
|
|
||
4 years ago
|
export default connect(mapStateToProps, mapDispatchToProps)(EndOfFlow);
|