Skip to content

Commit

Permalink
remove title from Link
Browse files Browse the repository at this point in the history
  • Loading branch information
pettinarip committed Jun 7, 2022
1 parent 0346c94 commit cc3c753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions src/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Icon from "./Icon"

import { languageMetadata } from "../utils/languages"
import { trackCustomEvent, EventOptions } from "../utils/matomo"
import { StringValueNode } from "graphql"

const HASH_PATTERN = /^#.*/
// const DOMAIN_PATTERN = /^(?:https?:)?[/]{2,}([^/]+)/
Expand Down Expand Up @@ -66,7 +67,6 @@ const GlossaryIcon = styled(Icon)`
export interface IProps {
to?: string
href?: string
title?: string
hideArrow?: boolean
className?: string
isPartiallyActive?: boolean
Expand All @@ -78,7 +78,6 @@ export interface IProps {
const Link: React.FC<IProps> = ({
to,
href,
title,
children,
hideArrow = false,
className,
Expand All @@ -105,7 +104,7 @@ const Link: React.FC<IProps> = ({
// See https://github.com/gatsbyjs/gatsby/issues/21909
if (isHash) {
return (
<a className={className} href={to} aria-label={ariaLabel} title={title}>
<a className={className} href={to} aria-label={ariaLabel}>
{children}
</a>
)
Expand All @@ -121,7 +120,6 @@ const Link: React.FC<IProps> = ({
target="_blank"
rel="noopener noreferrer"
aria-label={ariaLabel}
title={title}
>
{children}
</a>
Expand All @@ -147,7 +145,6 @@ const Link: React.FC<IProps> = ({
)
}
aria-label={ariaLabel}
title={title}
>
{children}
</a>
Expand All @@ -163,7 +160,6 @@ const Link: React.FC<IProps> = ({
)
}
aria-label={ariaLabel}
title={title}
>
{children}
</ExternalLink>
Expand All @@ -180,7 +176,6 @@ const Link: React.FC<IProps> = ({
activeClassName="active"
partiallyActive={isPartiallyActive}
onClick={onClick}
title={title}
>
{children}
</ExplicitLangInternalLink>
Expand All @@ -195,7 +190,6 @@ const Link: React.FC<IProps> = ({
target="_blank"
rel="noopener noreferrer"
aria-label={ariaLabel}
title={title}
>
{children}
</a>
Expand All @@ -210,7 +204,6 @@ const Link: React.FC<IProps> = ({
activeClassName="active"
partiallyActive={isPartiallyActive}
onClick={onClick}
title={title}
>
{children}
{isGlossary && (
Expand Down
2 changes: 1 addition & 1 deletion src/pages-conditional/eth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
<Translation id="page-eth-currency-for-apps" />
</SubtitleTwo>
<StyledEthPriceCard />
<ButtonLink to="/get-eth/" title="where to buy eth">
<ButtonLink to="/get-eth/">
<Translation id="page-eth-button-buy-eth" />
</ButtonLink>
</Header>
Expand Down

0 comments on commit cc3c753

Please sign in to comment.