Skip to content

Commit 9dab8d9

Browse files
authored
Merge pull request #101 from sombraSoft/fix/about-shelter-link
Links no about usam href ao invés de window.open
2 parents 17502e9 + 51622b7 commit 9dab8d9

File tree

1 file changed

+1
-2
lines changed
  • src/components/CardAboutShelter/components/InfoRow

1 file changed

+1
-2
lines changed

src/components/CardAboutShelter/components/InfoRow/InfoRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ const InfoRow = React.forwardRef<HTMLDivElement, IInfoRowProps>(
99
const ValueComp = !value ? (
1010
<Fragment />
1111
) : isLink ? (
12-
<a
12+
<a href={value} target='_blank'
1313
className="text-blue-500 break-all cursor-pointer hover:underline"
14-
onClick={() => window.open(value, '_blank')}
1514
>
1615
{value}
1716
</a>

0 commit comments

Comments
 (0)