From ccc51fa1e4c50f2f6a6d1ac2d65be605b44a2bf9 Mon Sep 17 00:00:00 2001 From: Michael An <37589122+Michael18811380328@users.noreply.github.com> Date: Tue, 22 Jan 2019 13:54:08 +0800 Subject: [PATCH] [improve] comment style (#2864) --- .../components/review-list-view/review-comments.js | 14 -------------- frontend/src/css/review-comments.css | 13 ++++--------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/review-list-view/review-comments.js b/frontend/src/components/review-list-view/review-comments.js index ea2e4ed25c..5bf98088e4 100644 --- a/frontend/src/components/review-list-view/review-comments.js +++ b/frontend/src/components/review-list-view/review-comments.js @@ -22,7 +22,6 @@ class ReviewComments extends React.Component { super(props); this.state = { commentsList: [], - userAvatar: '', inResizing: false, commentFooterHeight: 30, showResolvedComment: true, @@ -48,15 +47,6 @@ class ReviewComments extends React.Component { }); } - getUserAvatar = () => { - seafileAPI.getAccountInfo().then((res) => { - this.accountInfo = res.data; - this.setState({ - userAvatar: res.data.avatar_url, - }); - }); - } - handleCommentChange = (event) => { this.setState({ comment: event.target.value, @@ -140,7 +130,6 @@ class ReviewComments extends React.Component { } componentWillMount() { - this.getUserAvatar(); this.listComments(); } @@ -193,9 +182,6 @@ class ReviewComments extends React.Component {