This commit is contained in:
mgabdev
2020-03-14 13:31:29 -04:00
parent d78dd971c0
commit 65af72faae
81 changed files with 1101 additions and 662 deletions

View File

@@ -7,20 +7,17 @@ import {
const initialState = Immutable.Map({
popoverType: null,
placement: null,
keyboard: false
})
export default function popoverMenu(state = initialState, action) {
switch (action.type) {
case POPOVER_OPEN:
console.log("POPOVER_OPEN:", action)
return {
popoverType: action.popoverType,
popoverProps: action.popoverProps,
}
case POPOVER_CLOSE:
console.log("POPOVER_CLOSE:", action)
return initialState;
return initialState
default:
return state
}