Removing SidebarToggleButton, moving trigger to thumb-friendly buttom-right

This commit is contained in:
James Barnsley
2017-10-21 18:45:55 +13:00
parent f68ec5f2d0
commit e226925abe
16 changed files with 70 additions and 127 deletions

View File

@ -54,8 +54,12 @@ export function lazyLoading(start){
}
export function toggleSidebar(new_state = 'toggle'){
var action = { type: 'TOGGLE_SIDEBAR' }
if (new_state != 'toggle' ) action.new_state = new_state
var action = {
type: 'TOGGLE_SIDEBAR'
}
if (new_state != 'toggle'){
action.new_state = new_state
}
return action
}