mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
Update link.js
This commit is contained in:
parent
6a737c01eb
commit
1a9897467d
|
@ -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'
|
||||||
|
@ -74,15 +73,9 @@ const 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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user