This commit is contained in:
mgabdev
2020-04-07 21:06:59 -04:00
parent b5e3c2a94f
commit bb4fcdf32d
101 changed files with 1069 additions and 1886 deletions

View File

@@ -6,19 +6,19 @@ import {
const initialState = Immutable.Map({
popoverType: null,
placement: null,
popoverProps: null,
})
export default function popoverMenu(state = initialState, action) {
switch (action.type) {
case POPOVER_OPEN:
return {
popoverType: action.popoverType,
popoverProps: action.popoverProps,
}
case POPOVER_CLOSE:
return initialState
default:
return state
case POPOVER_OPEN:
return state.withMutations(map => {
map.set('popoverType', action.popoverType)
map.set('popoverProps', action.popoverProps)
})
case POPOVER_CLOSE:
return initialState
default:
return state
}
}