tabler-react-2 0.1.133 → 0.1.134
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
|
@@ -123,13 +123,13 @@ var useModal = exports.useModal = function useModal(options) {
|
|
|
123
123
|
var handleDecision = function handleDecision(decision) {
|
|
124
124
|
if (modalState.resolve) {
|
|
125
125
|
modalState.resolve(decision);
|
|
126
|
-
setModalState(function (prevState) {
|
|
127
|
-
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
128
|
-
open: false,
|
|
129
|
-
resolve: null
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
126
|
}
|
|
127
|
+
setModalState(function (prevState) {
|
|
128
|
+
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
129
|
+
open: false
|
|
130
|
+
// resolve: null,
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
133
|
};
|
|
134
134
|
var update = function update() {
|
|
135
135
|
setModalState(_objectSpread(_objectSpread({}, modalState), {}, {
|