(avatar: HTMLElement)
| 56 | } |
| 57 | |
| 58 | function addButton(avatar: HTMLElement): void { |
| 59 | const userMention = getCommentAuthor(avatar); |
| 60 | avatar.after( |
| 61 | tooltipped( |
| 62 | { |
| 63 | label: `Mention ${prefixUserMention(userMention)} in a new comment`, |
| 64 | direction: 'e', |
| 65 | }, |
| 66 | <button |
| 67 | type="button" |
| 68 | className="rgh-quick-mention btn-link" |
| 69 | > |
| 70 | <ReplyIcon /> |
| 71 | </button>, |
| 72 | ), |
| 73 | ); |
| 74 | } |
| 75 | |
| 76 | function addButtonPr(avatar: HTMLElement): void { |
| 77 | const timelineItem = closestElement([ |
no test coverage detected