mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
notice bug repair (#3178)
This commit is contained in:
@@ -186,6 +186,8 @@ class NoticeItem extends React.Component {
|
|||||||
// if (noticeType === MSG_TYPE_GUEST_INVITATION_ACCEPTED) {
|
// if (noticeType === MSG_TYPE_GUEST_INVITATION_ACCEPTED) {
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
return {avatar_url : null, notice : null};
|
||||||
}
|
}
|
||||||
|
|
||||||
onNoticeItemClick = () => {
|
onNoticeItemClick = () => {
|
||||||
@@ -200,6 +202,10 @@ class NoticeItem extends React.Component {
|
|||||||
let noticeItem = this.props.noticeItem;
|
let noticeItem = this.props.noticeItem;
|
||||||
let { avatar_url, notice } = this.generatorNoticeInfo();
|
let { avatar_url, notice } = this.generatorNoticeInfo();
|
||||||
|
|
||||||
|
if (!avatar_url && !notice) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li onClick={this.onNoticeItemClick} className={noticeItem.seen ? 'read' : 'unread'}>
|
<li onClick={this.onNoticeItemClick} className={noticeItem.seen ? 'read' : 'unread'}>
|
||||||
<div className="notice-item">
|
<div className="notice-item">
|
||||||
|
Reference in New Issue
Block a user