aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-14 04:15:21 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-14 04:15:21 +0800
commit4cd33453dc14ae9e6a797c16cccb52598904941a (patch)
tree0fd04bb0f3a75b13a80af7e391183ac855c12aa3 /ui/app/reducers
parente39c600a45a4cf28b5429231dd6c57442d467075 (diff)
downloadtangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.gz
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.bz2
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.lz
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.xz
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.zst
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.zip
[WIP] Extract network dropdown into own component
Diffstat (limited to 'ui/app/reducers')
-rw-r--r--ui/app/reducers/app.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index 878852bf6..3e74fb732 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -38,6 +38,7 @@ function reduceApp (state, action) {
menuOpen: false,
modalOpen: false,
sidebarOpen: false,
+ networkDropdownOpen: false,
currentView: seedWords ? seedConfView : defaultView,
accountDetail: {
subview: 'transactions',
@@ -51,6 +52,17 @@ function reduceApp (state, action) {
}, state.appState)
switch (action.type) {
+ // dropdown methods
+ case actions.NETWORK_DROPDOWN_OPEN:
+ return extend(appState, {
+ networkDropdownOpen: true,
+ })
+
+ case actions.NETWORK_DROPDOWN_CLOSE:
+ return extend(appState, {
+ networkDropdownOpen: false,
+ })
+
// sidebar methods
case actions.SIDEBAR_OPEN:
return extend(appState, {
@@ -74,7 +86,6 @@ function reduceApp (state, action) {
})
// transition methods
-
case actions.TRANSITION_FORWARD:
return extend(appState, {
transForward: true,