diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 04:03:36 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 04:03:36 +0800 |
commit | 7767f9f7ad7321d88a0b738d2c272961cc1ce286 (patch) | |
tree | 7dce6e8a22bad4160e5f1e2ff2f47eeab9e732cc /ui/app/reducers | |
parent | 96d3b2f35ff9cd4bb45ad04feaf30d2fb4fc2740 (diff) | |
download | tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.tar tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.tar.gz tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.tar.bz2 tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.tar.lz tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.tar.xz tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.tar.zst tangerine-wallet-browser-7767f9f7ad7321d88a0b738d2c272961cc1ce286.zip |
Hook up responsive sidebar
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 2fcc9bfe0..bf1de4577 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -36,6 +36,7 @@ function reduceApp (state, action) { var appState = extend({ shouldClose: false, menuOpen: false, + sidebarOpen: false, currentView: seedWords ? seedConfView : defaultView, accountDetail: { subview: 'transactions', @@ -46,6 +47,16 @@ function reduceApp (state, action) { }, state.appState) switch (action.type) { + // sidebar methods + case actions.SIDEBAR_OPEN: + return extend(appState, { + sidebarOpen: true, + }) + + case actions.SIDEBAR_CLOSE: + return extend(appState, { + sidebarOpen: false, + }) // transition methods |