mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
d9f07a796d
Fixes #8679
20 lines
543 B
JavaScript
20 lines
543 B
JavaScript
import { connect } from 'react-redux'
|
|
import EndOfFlow from './end-of-flow.component'
|
|
import { getOnboardingInitiator } from '../../../selectors'
|
|
|
|
const firstTimeFlowTypeNameMap = {
|
|
create: 'New Wallet Created',
|
|
'import': 'New Wallet Imported',
|
|
}
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { metamask: { firstTimeFlowType } } = state
|
|
|
|
return {
|
|
completionMetaMetricsName: firstTimeFlowTypeNameMap[firstTimeFlowType],
|
|
onboardingInitiator: getOnboardingInitiator(state),
|
|
}
|
|
}
|
|
|
|
export default connect(mapStateToProps)(EndOfFlow)
|