diff --git a/website/src/components/link.js b/website/src/components/link.js index 0f209329b..7cf4435fc 100644 --- a/website/src/components/link.js +++ b/website/src/components/link.js @@ -1,6 +1,6 @@ import React, { Fragment } from 'react' import PropTypes from 'prop-types' -import { Link as GatsbyLink } from 'gatsby' +import NextLink from 'next/link' import classNames from 'classnames' import Icon from './icon' @@ -58,22 +58,22 @@ export default function Link({ if ((dest && /^#/.test(dest)) || onClick) { return ( - + {children} - + ) } return ( - {content} - + ) } @@ -81,9 +81,9 @@ export default function Link({ const relTarget = isInternal ? {} : { rel: 'noopener nofollow noreferrer', target: '_blank' } return ( - + {content} - + ) }