You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
615 B
26 lines
615 B
import { connect } from 'react-redux'
|
|
import MenuBar from './menu-bar.component'
|
|
import { showSidebar, hideSidebar } from '../../actions'
|
|
|
|
const mapStateToProps = state => {
|
|
const { appState: { sidebar: { isOpen }, isMascara } } = state
|
|
|
|
return {
|
|
sidebarOpen: isOpen,
|
|
isMascara,
|
|
}
|
|
}
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
return {
|
|
showSidebar: () => {
|
|
dispatch(showSidebar({
|
|
transitionName: 'sidebar-right',
|
|
type: 'wallet-view',
|
|
}))
|
|
},
|
|
hideSidebar: () => dispatch(hideSidebar()),
|
|
}
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(MenuBar)
|
|
|