more actions without subscribing first
This commit is contained in:
@@ -3,11 +3,8 @@ import React from 'react';
|
||||
|
||||
export default class UnreadBadge extends React.PureComponent {
|
||||
render() {
|
||||
var showUnreadBadge = null;
|
||||
if (this.props.count > 0) {
|
||||
var count = this.props.count > 9 ? "9+" : this.props.count;
|
||||
showUnreadBadge = <span className="unread">{count}</span>;
|
||||
}
|
||||
return showUnreadBadge;
|
||||
return (this.props.count > 0 ?
|
||||
<span className="unread">{this.props.count > 9 ? "9+" : this.props.count}</span>
|
||||
: null);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user