1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 00:28:06 +01:00
metamask-extension/ui/app/pages/first-time-flow/end-of-flow/end-of-flow.container.js
Whymarrh Whitby c1e3c229bc
Fix import/order issues (#9239)
See [`import/order`](https://eslint.org/docs/rules/import/order) for more information.

This change enables `import/order` and fixes the issues raised by the rule.
2020-08-18 16:48:25 -02:30

20 lines
543 B
JavaScript

import { connect } from 'react-redux'
import { getOnboardingInitiator } from '../../../selectors'
import EndOfFlow from './end-of-flow.component'
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)