Fix outbound link [ci skip]

This commit is contained in:
Ines Montani 2020-09-04 14:27:46 +02:00
parent afdf14c717
commit 8651022774
1 changed files with 2 additions and 9 deletions

View File

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