tabler-react-2 0.1.133-beta.2 → 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.
@@ -126,8 +126,8 @@ var useModal = exports.useModal = function useModal(options) {
126
126
  }
127
127
  setModalState(function (prevState) {
128
128
  return _objectSpread(_objectSpread({}, prevState), {}, {
129
- open: false,
130
- resolve: null
129
+ open: false
130
+ // resolve: null,
131
131
  });
132
132
  });
133
133
  };
@@ -136,9 +136,6 @@ var useModal = exports.useModal = function useModal(options) {
136
136
  text: options.text
137
137
  }));
138
138
  };
139
- (0, _react.useEffect)(function () {
140
- console.log("modalState updated", modalState);
141
- }, [modalState]);
142
139
  var ModalElement = /*#__PURE__*/_react["default"].createElement(Modal, _extends({
143
140
  open: modalState.open,
144
141
  onClose: function onClose() {
@@ -155,9 +152,7 @@ var useModal = exports.useModal = function useModal(options) {
155
152
  } // Fix onClick behavior
156
153
  };
157
154
  })
158
- }, options.modalProps || {}), JSON.stringify(_objectSpread(_objectSpread({}, modalState), {}, {
159
- text: undefined
160
- })), modalState.text);
155
+ }, options.modalProps || {}), modalState.text);
161
156
  return {
162
157
  modal: modal,
163
158
  ModalElement: ModalElement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.133-beta.2",
3
+ "version": "0.1.134",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {