diff --git a/src/components/LinkText/index.tsx b/src/components/LinkText/index.tsx index a06a6dc18..6b2c0f566 100644 --- a/src/components/LinkText/index.tsx +++ b/src/components/LinkText/index.tsx @@ -4,13 +4,11 @@ import React from 'react'; type LinkTextProps = { href: string; children?: React.ReactNode; - target?: string, - rel?: string }; -const LinkText = ({ href, children, target, rel }: LinkTextProps) => { +const LinkText = ({ href, children }: LinkTextProps) => { return ( - href.startsWith('http') ? {children} : {children} + href.startsWith('http') ? {children} : {children} ) } diff --git a/src/components/RandomContributor/index.tsx b/src/components/RandomContributor/index.tsx index 21d2ab74d..239a06371 100644 --- a/src/components/RandomContributor/index.tsx +++ b/src/components/RandomContributor/index.tsx @@ -3,7 +3,7 @@ import { useAdoptiumContributorsApi, useOnScreen } from '../../hooks'; import './RandomContributor.scss'; import AnimatedPlaceholder from '../AnimatedPlaceholder'; import { Trans } from 'gatsby-plugin-react-i18next'; -import LinkText from '../LinkText' +import Link from '@mui/material/Link'; const RandomContributor = (): JSX.Element => { const ref = useRef(null); @@ -32,9 +32,9 @@ const RandomContributor = (): JSX.Element => { i18nKey="asciidoc.random.contributor.text" defaults='Thank you {{login}} for making {{contributionsCount}} contributions to {{repo}}' components={{ - profileUri: , - commitsListUri: , - repoUri: , + profileUri: , + commitsListUri: , + repoUri: , }} values={{ 'login': contributor.login,