diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-09-05 02:49:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 02:49:09 +0800 |
commit | 86bb96aaaf106f1fa16fa93e749772524b5132b2 (patch) | |
tree | 4920f6cff23e5f065fb13352697bbeff52b332ae /ui/app/components/menu-bar/menu-bar.container.js | |
parent | b9e4feac489b8c478a7bff935c319588a2c3acf3 (diff) | |
parent | 40e0d92f572d4fff14bfac9a2b0a64ffae8ec7c5 (diff) | |
download | tangerine-wallet-browser-86bb96aaaf106f1fa16fa93e749772524b5132b2.tar.gz tangerine-wallet-browser-86bb96aaaf106f1fa16fa93e749772524b5132b2.tar.zst tangerine-wallet-browser-86bb96aaaf106f1fa16fa93e749772524b5132b2.zip |
Merge pull request #5129 from MetaMask/add-sidebar-component
Add sidebar component
Diffstat (limited to 'ui/app/components/menu-bar/menu-bar.container.js')
-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()), } } |