@@ -86,33 +86,33 @@ export function Layout({
8686 >
8787 < ul className = "grid grid-flow-row gap-2 mb-8 auto-rows-max" >
8888 < li >
89- < Link href = "/" passHref >
90- < a
91- className = { classNames (
92- "text-sm font-medium hover:underline" ,
93- pathname === "/" ? " text-blue-700" : "text-gray-700"
94- ) }
95- >
96- Home
97- </ a >
89+ < Link
90+ href = "/"
91+ passHref
92+ className = { classNames (
93+ " text-sm font-medium hover:underline" ,
94+ pathname === "/" ? "text-blue-700" : "text-gray-700"
95+ ) }
96+ >
97+ Home
9898 </ Link >
9999 </ li >
100100 { site . links . map ( ( link , index ) => {
101101 const isActive =
102102 pathname === link . href || link . activePathNames ?. includes ( pathname )
103103 return (
104104 < li key = { index } >
105- < Link href = { link . href } passHref >
106- < a
107- className = { classNames (
108- "text-sm font-medium hover:underline" ,
109- isActive ? "text-blue-700" : "text-gray-900"
110- ) }
111- target = { link . external ? "_blank" : "_self" }
112- rel = { link . external ? "noreferrer " : "" }
113- >
114- { link . title }
115- </ a >
105+ < Link
106+ href = { link . href }
107+ passHref
108+ className = { classNames (
109+ "text-sm font-medium hover:underline" ,
110+ isActive ? "text-blue-700" : "text-gray-900"
111+ ) }
112+ target = { link . external ? "_blank " : "_self " }
113+ rel = { link . external ? "noreferrer" : "" }
114+ >
115+ { link . title }
116116 </ Link >
117117 </ li >
118118 )
@@ -170,29 +170,32 @@ export function Layout({
170170 < span className = "sr-only" > Toggle Menu</ span >
171171 </ button >
172172 < div className = "flex items-center space-x-8" >
173- < Link href = "/" passHref >
174- < a className = "items-center flex-shrink hidden font-semibold sm:flex sm:text-lg lg:text-base xl:text-lg" >
175- { site . name }
176- </ a >
173+ < Link
174+ href = "/"
175+ passHref
176+ className = "items-center flex-shrink hidden font-semibold sm:flex sm:text-lg lg:text-base xl:text-lg"
177+ >
178+ { site . name }
177179 </ Link >
178180 < div className = "flex-grow hidden grid-flow-col gap-6 mr-4 lg:grid lg:mr-4 lg:gap-4 xl:gap-6 auto-cols-max" >
179181 { site . links . map ( ( link ) => {
180182 const isActive =
181183 pathname === link . href ||
182184 link . activePathNames ?. includes ( pathname )
183185 return (
184- < Link key = { link . href } href = { link . href } passHref >
185- < a
186- className = { classNames (
187- "hover:underline" ,
188- mode === "dark" ? "text-white" : "hover:text-black" ,
189- isActive ? "text-black" : "text-gray-600"
190- ) }
191- target = { link . external ? "_blank" : "_self" }
192- rel = { link . external ? "noreferrer" : "" }
193- >
194- { link . title }
195- </ a >
186+ < Link
187+ key = { link . href }
188+ href = { link . href }
189+ passHref
190+ className = { classNames (
191+ "hover:underline" ,
192+ mode === "dark" ? "text-white" : "hover:text-black" ,
193+ isActive ? "text-black" : "text-gray-600"
194+ ) }
195+ target = { link . external ? "_blank" : "_self" }
196+ rel = { link . external ? "noreferrer" : "" }
197+ >
198+ { link . title }
196199 </ Link >
197200 )
198201 } ) }
@@ -276,17 +279,17 @@ export function Layout({
276279 < Menu . Item key = { version . version } >
277280 { ( { active } ) =>
278281 version . url ? (
279- < Link href = { version . url } passHref >
280- < a
281- className = { classNames (
282- "text-sm px-3 py-1 hover:bg-blue-50" ,
283- {
284- "bg-blue-50" : active ,
285- }
286- ) }
287- >
288- { version . version }
289- </ a >
282+ < Link
283+ href = { version . url }
284+ passHref
285+ className = { classNames (
286+ "text-sm px-3 py-1 hover:bg-blue-50" ,
287+ {
288+ "bg-blue-50" : active ,
289+ }
290+ ) }
291+ >
292+ { version . version }
290293 </ Link >
291294 ) : (
292295 < span
0 commit comments