1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

notice bug repair (#3178)

This commit is contained in:
杨顺强
2019-03-26 15:37:19 +08:00
committed by Daniel Pan
parent 343bc3eca6
commit 38c6500fd2

View File

@@ -182,10 +182,12 @@ class NoticeItem extends React.Component {
notice = notice.replace('{draft_link}', draftLink);
return {avatar_url, notice};
}
// if (noticeType === MSG_TYPE_GUEST_INVITATION_ACCEPTED) {
// }
return {avatar_url : null, notice : null};
}
onNoticeItemClick = () => {
@@ -200,6 +202,10 @@ class NoticeItem extends React.Component {
let noticeItem = this.props.noticeItem;
let { avatar_url, notice } = this.generatorNoticeInfo();
if (!avatar_url && !notice) {
return '';
}
return (
<li onClick={this.onNoticeItemClick} className={noticeItem.seen ? 'read' : 'unread'}>
<div className="notice-item">