Fix outbound link and update package lock [ci skip]

This commit is contained in:
Ines Montani 2020-09-04 14:44:38 +02:00
parent ba6cf9821f
commit 33d9c64977
2 changed files with 2 additions and 17 deletions

View File

@ -7441,14 +7441,6 @@
"escape-string-regexp": "^1.0.5"
}
},
"gatsby-plugin-google-analytics": {
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.0.14.tgz",
"integrity": "sha512-sFD73d9isJQknnDAAkDidaybHJx6VIaLfy3nO3DwbFaitvZ08RimbynYOkcWAeA0zwwix2RgAvbq/9pAmtTb/A==",
"requires": {
"@babel/runtime": "^7.0.0"
}
},
"gatsby-plugin-manifest": {
"version": "2.0.17",
"resolved": "https://registry.npmjs.org/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.0.17.tgz",

View File

@ -1,7 +1,6 @@
import React, { Fragment } from 'react'
import PropTypes from 'prop-types'
import { Link as GatsbyLink } from 'gatsby'
import { OutboundLink } from 'gatsby-plugin-google-analytics'
import classNames from 'classnames'
import Icon from './icon'
@ -74,15 +73,9 @@ const Link = ({
const rel = isInternal ? null : 'noopener nofollow noreferrer'
return (
<Wrapper>
<OutboundLink
href={dest}
className={linkClassNames}
target="_blank"
rel={rel}
{...other}
>
<a href={dest} className={linkClassNames} target="_blank" rel={rel} {...other}>
{content}
</OutboundLink>
</a>
</Wrapper>
)
}