mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 00:28:06 +01:00
c1e3c229bc
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.
20 lines
543 B
JavaScript
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)
|