Skip to content

Commit

Permalink
ESCKAN-59: fixing provenances click opening url
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Jun 24, 2024
1 parent 524f6d8 commit 9e2a874
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/connections/SummaryDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ const SummaryDetails = ({
label={row}
variant="outlined"
className="link"
style={row.includes('http') ? { cursor: 'pointer' } : {}}

Check failure on line 171 in src/components/connections/SummaryDetails.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

Replace `row.includes('http')·?·{·cursor:·'pointer'·}·:·{}` with `⏎································row.includes('http')⏎··································?·{·cursor:·'pointer'·}⏎··································:·{}⏎······························`
onClick={() => {
if (row.includes('http')) {
window.open(row, '_blank');
}
}}
icon={
<ArrowOutwardRoundedIcon fontSize="small" />
}
Expand Down

0 comments on commit 9e2a874

Please sign in to comment.