tabler-react-2 0.1.132-beta.1 → 0.1.133-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/modal/modal.js
CHANGED
|
@@ -121,7 +121,6 @@ var useModal = exports.useModal = function useModal(options) {
|
|
|
121
121
|
});
|
|
122
122
|
}, []);
|
|
123
123
|
var handleDecision = function handleDecision(decision) {
|
|
124
|
-
console.log("Recieved decision", decision);
|
|
125
124
|
if (modalState.resolve) {
|
|
126
125
|
modalState.resolve(decision);
|
|
127
126
|
setModalState(function (prevState) {
|
|
@@ -137,6 +136,9 @@ var useModal = exports.useModal = function useModal(options) {
|
|
|
137
136
|
text: options.text
|
|
138
137
|
}));
|
|
139
138
|
};
|
|
139
|
+
(0, _react.useEffect)(function () {
|
|
140
|
+
console.log("modalState updated", modalState);
|
|
141
|
+
}, [modalState]);
|
|
140
142
|
var ModalElement = /*#__PURE__*/_react["default"].createElement(Modal, _extends({
|
|
141
143
|
open: modalState.open,
|
|
142
144
|
onClose: function onClose() {
|