@seafile/sdoc-editor 0.1.161-beta → 0.1.161-beta2

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.
@@ -15,7 +15,7 @@ var TipDialog = function TipDialog(_ref) {
15
15
  submit = _ref.submit;
16
16
  var _useTranslation = useTranslation(),
17
17
  t = _useTranslation.t;
18
- var _useState = useState(),
18
+ var _useState = useState(false),
19
19
  _useState2 = _slicedToArray(_useState, 2),
20
20
  isSubmitting = _useState2[0],
21
21
  setSubmitting = _useState2[1];
@@ -28,11 +28,12 @@ var TipDialog = function TipDialog(_ref) {
28
28
  }, [tipType, isSubmitting]);
29
29
  var confirmTip = useCallback(function () {
30
30
  submit && submit(function (submitting) {
31
+ console.log(submitting);
31
32
  setSubmitting(submitting);
32
33
  });
33
34
 
34
35
  // eslint-disable-next-line react-hooks/exhaustive-deps
35
- }, []);
36
+ }, [tipType]);
36
37
  return /*#__PURE__*/React.createElement(Modal, {
37
38
  isOpen: true,
38
39
  autoFocus: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.161beta",
3
+ "version": "0.1.161beta2",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",