Skip to content

Commit b738a5a

Browse files
committed
fix link in accordions
Fixes #122
1 parent 2cfbff6 commit b738a5a

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/components/paper.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Paper = ({
1313
title,
1414
published_info,
1515
authors,
16-
link,
16+
doi,
1717
abstract,
1818
number,
1919
}) => {
@@ -36,7 +36,15 @@ export const Paper = ({
3636
<Box as='i' textAlign='left'>
3737
{published_info}
3838
</Box>
39-
<Link textAlign='left' href={link} color='blue.500' isExternal>
39+
<Link
40+
textAlign='left'
41+
href={doi}
42+
color='blue.500'
43+
isExternal
44+
onClick={(e) => {
45+
e.stopPropagation()
46+
}}
47+
>
4048
View paper
4149
</Link>
4250
<Box as='i' color='gray.500' textAlign='left'>

0 commit comments

Comments
 (0)