tabler-react-2 0.1.33 → 0.1.34

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.
@@ -115,6 +115,14 @@ var useModal = exports.useModal = function useModal(options) {
115
115
  _useState2 = _slicedToArray(_useState, 2),
116
116
  modalState = _useState2[0],
117
117
  setModalState = _useState2[1];
118
+ (0, _react.useEffect)(function () {
119
+ setModalState({
120
+ open: options.open,
121
+ title: options.title,
122
+ text: options.text,
123
+ buttons: options.buttons
124
+ });
125
+ }, [options]);
118
126
  var modal = (0, _react.useCallback)(function () {
119
127
  var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
120
128
  return new Promise(function (resolve) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {