@seafile/comment-editor 0.0.1-alpha.70 → 0.0.1-alpha.71

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.
@@ -30,10 +30,11 @@ var _slateToMd = _interopRequireDefault(require("../slate-convert/slate-to-md"))
30
30
  var _eventBus = _interopRequireDefault(require("../utils/event-bus"));
31
31
  var _eventHandler = _interopRequireDefault(require("../utils/event-handler"));
32
32
  require("./comment-editor.css");
33
- const getSubmitTip = (type, content) => {
34
- if (content) return 'Save';
35
- return type === 'comment' ? 'Comment' : 'Reply';
36
- };
33
+ // const getSubmitTip = (type, content) => {
34
+ // if (content) return 'Save';
35
+ // return type === 'comment' ? 'Comment' : 'Reply';
36
+ // };
37
+
37
38
  const DEFAULT_PLACEHOLDER = 'Enter_comment_shift_enter_for_new_line_Enter_to_send';
38
39
  const CommentEditor = _ref => {
39
40
  let {
@@ -56,7 +57,7 @@ const CommentEditor = _ref => {
56
57
  type,
57
58
  addParticipants
58
59
  } = (0, _useComment.useComment)();
59
- const submitTip = (0, _react.useMemo)(() => getSubmitTip(type, content), [content, type]);
60
+ // const submitTip = useMemo(() => getSubmitTip(type, content), [content, type]);
60
61
 
61
62
  // const document = useMemo(() => {
62
63
  // const cursor = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.70",
3
+ "version": "0.0.1-alpha.71",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",