Dropdown click outside better handlers

This commit is contained in:
James Barnsley
2018-05-09 14:09:20 +12:00
parent 44d5f13372
commit 03d0ae3397
12 changed files with 247 additions and 157 deletions

View File

@ -14,7 +14,8 @@ export default function reducer(ui = {}, action){
return Object.assign({}, ui, { debug_response: action.response })
case 'UI_SET':
return Object.assign({}, ui, action.data)
console.log(action);
return Object.assign({}, ui, action.data);
case 'TOGGLE_SIDEBAR':
var new_state = !ui.sidebar_open