diff options
author | Dan <danjm.com@gmail.com> | 2018-01-11 02:25:38 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2018-01-13 05:42:51 +0800 |
commit | 980e1bfcf82361185f6d1b22abd9593ba166825e (patch) | |
tree | 8bdb94affcc0c332f9ff681e53fa2a4fff695f1f /ui/app/reducers | |
parent | 89a8267fe70b62739043c09e855d6aa97af8769e (diff) | |
download | tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.gz tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.bz2 tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.lz tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.xz tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.tar.zst tangerine-wallet-browser-980e1bfcf82361185f6d1b22abd9593ba166825e.zip |
New add account page with create and import options.
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index e96dea0be..b4950e9d9 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -170,7 +170,6 @@ function reduceApp (state, action) { }) case actions.SHOW_IMPORT_PAGE: - return extend(appState, { currentView: { name: 'import-menu', @@ -179,6 +178,24 @@ function reduceApp (state, action) { warning: null, }) + case actions.SHOW_NEW_ACCOUNT_PAGE: + return extend(appState, { + currentView: { + name: 'new-account-page', + context: action.formToSelect, + }, + transForward: true, + warning: null, + }) + + case actions.SET_NEW_ACCOUNT_FORM: + return extend(appState, { + currentView: { + name: appState.currentView.name, + context: action.formToSelect, + }, + }) + case actions.SHOW_INFO_PAGE: return extend(appState, { currentView: { |