@seafile/comment-editor 0.0.1-alpha.54 → 0.0.1-alpha.56

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.
@@ -221,6 +221,17 @@ const CommentEditor = _ref => {
221
221
  return /*#__PURE__*/_react.default.createElement("div", {
222
222
  className: (0, _classnames.default)('comment-editor-wrapper', className),
223
223
  ref: commentWrapperRef
224
- });
224
+ }, type === 'comment' && !hiddenUserInfo && /*#__PURE__*/_react.default.createElement("div", {
225
+ className: "comment-editor-user-info"
226
+ }, /*#__PURE__*/_react.default.createElement("div", {
227
+ className: "comment-editor-user-img"
228
+ }, /*#__PURE__*/_react.default.createElement("img", {
229
+ src: userInfo.avatar_url,
230
+ alt: "",
231
+ height: "100%",
232
+ width: "100%"
233
+ })), /*#__PURE__*/_react.default.createElement("div", {
234
+ className: "comment-editor-user-name"
235
+ }, userInfo.name)));
225
236
  };
226
237
  var _default = exports.default = CommentEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.54",
3
+ "version": "0.0.1-alpha.56",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",