|
|
@ -30,12 +30,12 @@ export const modalReducer = (state: ModalState = ModalInitialState, action: Moda |
|
|
|
return { ...state, modals: modalList } |
|
|
|
return { ...state, modals: modalList } |
|
|
|
} |
|
|
|
} |
|
|
|
case modalActionTypes.handleHideModal: |
|
|
|
case modalActionTypes.handleHideModal: |
|
|
|
if (state.focusModal.resolve) { |
|
|
|
|
|
|
|
state.focusModal.resolve(undefined) |
|
|
|
|
|
|
|
} else |
|
|
|
|
|
|
|
if (state.focusModal.hideFn) { |
|
|
|
if (state.focusModal.hideFn) { |
|
|
|
state.focusModal.hideFn() |
|
|
|
state.focusModal.hideFn() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else if (state.focusModal.resolve) { |
|
|
|
|
|
|
|
state.focusModal.resolve(undefined) |
|
|
|
|
|
|
|
} |
|
|
|
state.focusModal = { ...state.focusModal, hide: true, message: null } |
|
|
|
state.focusModal = { ...state.focusModal, hide: true, message: null } |
|
|
|
return { ...state } |
|
|
|
return { ...state } |
|
|
|
|
|
|
|
|
|
|
|