diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-08-23 10:27:35 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-08-29 08:38:15 +0800 |
commit | 40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5 (patch) | |
tree | 47d6b83438cdc7e0cd3e7f0b5825de90d50a1136 /ui/app/components/menu-bar | |
parent | 4560df6e739b97caf95ef5bc5bc93f91e8c890bb (diff) | |
download | tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.tar tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.tar.gz tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.tar.bz2 tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.tar.lz tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.tar.xz tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.tar.zst tangerine-wallet-browser-40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5.zip |
Adds sidebar component and refactors slide in wallet view sidebar to use it.
Diffstat (limited to 'ui/app/components/menu-bar')
-rw-r--r-- | ui/app/components/menu-bar/menu-bar.container.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/app/components/menu-bar/menu-bar.container.js b/ui/app/components/menu-bar/menu-bar.container.js index 2bd0ed6ed..ae32882ae 100644 --- a/ui/app/components/menu-bar/menu-bar.container.js +++ b/ui/app/components/menu-bar/menu-bar.container.js @@ -3,17 +3,22 @@ import MenuBar from './menu-bar.component' import { showSidebar, hideSidebar } from '../../actions' const mapStateToProps = state => { - const { appState: { sidebarOpen, isMascara } } = state + const { appState: { sidebar: { isOpen }, isMascara } } = state return { - sidebarOpen, + sidebarOpen: isOpen, isMascara, } } const mapDispatchToProps = dispatch => { return { - showSidebar: () => dispatch(showSidebar()), + showSidebar: () => { + dispatch(showSidebar({ + transitionName: 'sidebar-right', + type: 'wallet-view', + })) + }, hideSidebar: () => dispatch(hideSidebar()), } } |