Skip to content

Commit 6e285e5

Browse files
committed
Style external profile button as anchor tag
1 parent 5aa7ebd commit 6e285e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/external-profile-button.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Button from './button'
21
import join from 'url-join'
32
const URL = process.env.APP_URL
43

@@ -36,14 +35,15 @@ const ExternalProfileButton = ({ type, userId }) => {
3635
}
3736

3837
return (
39-
<Button
38+
<a
4039
onClick={(e) => {
4140
e.stopPropagation()
42-
window.open(targetLink, '_blank', 'noreferrer')
4341
}}
42+
href={targetLink}
43+
rel='noopener noreferrer'
44+
target='_blank'
4445
flat
45-
size='small'
46-
className='unstyled small'
46+
className='button unstyled small'
4747
title={title}
4848
>
4949
<img
@@ -53,7 +53,7 @@ const ExternalProfileButton = ({ type, userId }) => {
5353
height='16'
5454
/>
5555
{label}
56-
</Button>
56+
</a>
5757
)
5858
}
5959

0 commit comments

Comments
 (0)