blob: e6cd5a84ac3b2663ca610652bd4af0fd9fb35078 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import {
INITIALIZE_CREATE_PASSWORD_ROUTE,
INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE,
DEFAULT_ROUTE,
} from '../../helpers/constants/routes'
const selectors = {
getFirstTimeFlowTypeRoute,
}
module.exports = selectors
function getFirstTimeFlowTypeRoute (state) {
const { firstTimeFlowType } = state.metamask
let nextRoute
if (firstTimeFlowType === 'create') {
nextRoute = INITIALIZE_CREATE_PASSWORD_ROUTE
} else if (firstTimeFlowType === 'import') {
nextRoute = INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE
} else {
nextRoute = DEFAULT_ROUTE
}
return nextRoute
}
|