UNPKG

@talend/react-containers

Version:

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

26 lines (25 loc) 793 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hideConfirmDialog = hideConfirmDialog; exports.showConfirmDialog = showConfirmDialog; 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; } 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