Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
jsx-eslint/eslint-plugin-jsx-a11y#402
If the <a> tag wrapped by <Link href="xx" passHref> doesn't have the
href attribute set, eslint complains.
  • Loading branch information
brmzkw committed Oct 4, 2021
1 parent 7160caf commit 6bdb51c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/ButtonLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ButtonLink = React.forwardRef(
{ children }
</button>
);
}
},
);

ButtonLink.defaultProps = {
Expand Down
8 changes: 4 additions & 4 deletions pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function ChallengesSection() {
<div className="fr-card__body">
<h4 className="fr-card__title">
<Link href="/taxi" passHref>
<a className="fr-card__link">Artisan taxi</a>
<a href="/taxi" className="fr-card__link">Artisan taxi</a>
</Link>
</h4>
<p className="fr-card__desc">Recevez de nouvelles courses lorsque vous êtes en maraude</p>
Expand All @@ -78,7 +78,7 @@ function ChallengesSection() {
<div className="fr-card__body">
<h4 className="fr-card__title">
<Link href="/taxis_group" passHref>
<a className="fr-card__link">Groupement de taxis</a>
<a href="/taxis_group" className="fr-card__link">Groupement de taxis</a>
</Link>
</h4>
<p className="fr-card__desc">Connectez vos taxis à tous les usagers</p>
Expand All @@ -94,7 +94,7 @@ function ChallengesSection() {
<div className="fr-card__body">
<h4 className="fr-card__title">
<Link href="/maas" passHref>
<a className="fr-card__link">Application de mobilité</a>
<a href="/maas" className="fr-card__link">Application de mobilité</a>
</Link>
</h4>
<p className="fr-card__desc">Proposez aussi les taxis dans votre application grand public</p>
Expand All @@ -110,7 +110,7 @@ function ChallengesSection() {
<div className="fr-card__body">
<h4 className="fr-card__title">
<Link href="/aom" passHref>
<a className="fr-card__link">Mobilité publique</a>
<a href="/aom" className="fr-card__link">Mobilité publique</a>
</Link>
</h4>
<p className="fr-card__desc">Intégrez le service public des taxis à votre offre locale</p>
Expand Down

0 comments on commit 6bdb51c

Please sign in to comment.