UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

19 lines 633 B
export function showConfirmDialog(state, action) { // adding conf and showing modal const path = ['CMFContainer(ConfirmDialog)', 'ConfirmDialog']; const newState = { ...state }; newState.cmf.components = state.cmf.components.setIn(path, action.confirmDialogConf.set('show', true)); return newState; } export function hideConfirmDialog(state) { // hiding the modal const path = ['CMFContainer(ConfirmDialog)', 'ConfirmDialog', 'show']; const newState = { ...state }; newState.cmf.components = state.cmf.components.setIn(path, false); return newState; } //# sourceMappingURL=showHideConfirmDialog.js.map