Skip to content

Commit 370b803

Browse files
[MM-408]: Made username clickable in RHS PRs/Issues (#830)
* [MM-408]: Made username clickable in RHS PRs/Issues * made link openeing in new tab
1 parent 29da42c commit 370b803

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

webapp/src/components/sidebar_right/github_items.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,18 @@ function GithubItems(props: GithubItemsProps) {
281281
<CalendarIcon size={16}/> {'Opened '} {formatTimeSince(item.created_at)} {' ago'}
282282
</>
283283
)}
284-
{userName && ' by ' + userName}
284+
{userName && (
285+
<>
286+
{' by '}
287+
<a
288+
href={`https://github.com/${userName}`}
289+
target='_blank'
290+
rel='noopener noreferrer'
291+
>
292+
{userName}
293+
</a>
294+
</>
295+
)}
285296
{(item.created_at || userName) && '.'}
286297
{milestone}
287298
{item.reason ? (<>

0 commit comments

Comments
 (0)