Skip to content

Commit 6bdb51c

Browse files
committed
Fix eslint
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.
1 parent 7160caf commit 6bdb51c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

components/ButtonLink.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ButtonLink = React.forwardRef(
1414
{ children }
1515
</button>
1616
);
17-
}
17+
},
1818
);
1919

2020
ButtonLink.defaultProps = {

pages/index.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function ChallengesSection() {
6262
<div className="fr-card__body">
6363
<h4 className="fr-card__title">
6464
<Link href="/taxi" passHref>
65-
<a className="fr-card__link">Artisan taxi</a>
65+
<a href="/taxi" className="fr-card__link">Artisan taxi</a>
6666
</Link>
6767
</h4>
6868
<p className="fr-card__desc">Recevez de nouvelles courses lorsque vous êtes en maraude</p>
@@ -78,7 +78,7 @@ function ChallengesSection() {
7878
<div className="fr-card__body">
7979
<h4 className="fr-card__title">
8080
<Link href="/taxis_group" passHref>
81-
<a className="fr-card__link">Groupement de taxis</a>
81+
<a href="/taxis_group" className="fr-card__link">Groupement de taxis</a>
8282
</Link>
8383
</h4>
8484
<p className="fr-card__desc">Connectez vos taxis à tous les usagers</p>
@@ -94,7 +94,7 @@ function ChallengesSection() {
9494
<div className="fr-card__body">
9595
<h4 className="fr-card__title">
9696
<Link href="/maas" passHref>
97-
<a className="fr-card__link">Application de mobilité</a>
97+
<a href="/maas" className="fr-card__link">Application de mobilité</a>
9898
</Link>
9999
</h4>
100100
<p className="fr-card__desc">Proposez aussi les taxis dans votre application grand public</p>
@@ -110,7 +110,7 @@ function ChallengesSection() {
110110
<div className="fr-card__body">
111111
<h4 className="fr-card__title">
112112
<Link href="/aom" passHref>
113-
<a className="fr-card__link">Mobilité publique</a>
113+
<a href="/aom" className="fr-card__link">Mobilité publique</a>
114114
</Link>
115115
</h4>
116116
<p className="fr-card__desc">Intégrez le service public des taxis à votre offre locale</p>

0 commit comments

Comments
 (0)