@@ -4,7 +4,7 @@ import { useCallback, useMemo, useRef, useState } from 'react'
44import Button from './button.js'
55import Cross from '../icons/cross'
66import Hamburger from '../icons/hamburger'
7- import Link from 'next /link'
7+ import Link from '. /link'
88import clsx from 'clsx'
99import countly from '../lib/countly'
1010import { getMagic } from '../lib/magic.js'
@@ -153,13 +153,12 @@ export default function Navbar({ bgColor = 'bg-nsorange', logo, user }) {
153153 < Hamburger className = "w-4 m2" aria-label = "Toggle Navbar" />
154154 </ Button >
155155 </ div >
156- < Link href = { { pathname : '/' , query : version ? { version } : null } } >
157- < a
158- className = "nav-logo-link flex no-underline align-middle"
159- onClick = { onLinkClick }
160- >
161- < Logo dark = { logo . isDark } />
162- </ a >
156+ < Link
157+ className = "nav-logo-link flex no-underline align-middle"
158+ href = { { pathname : '/' , query : version ? { version } : null } }
159+ onClick = { onLinkClick }
160+ >
161+ < Logo dark = { logo . isDark } />
163162 </ Link >
164163 < div className = "flex items-center" >
165164 < div className = "desktop-nav-items" >
@@ -170,17 +169,16 @@ export default function Navbar({ bgColor = 'bg-nsorange', logo, user }) {
170169 key = { `nav-link-${ index } ` }
171170 onClick = { item . onClick }
172171 >
173- < Link href = { item . link || '' } >
174- < a
175- key = { item . name }
176- className = { clsx (
177- 'text-xl text-black no-underline underline-hover align-middle' ,
178- { mr4 : index === ITEMS . length - 1 }
179- ) }
180- onClick = { item . tracking ? item . tracking : onLinkClick }
181- >
182- { item . name }
183- </ a >
172+ < Link
173+ href = { item . link || '' }
174+ key = { item . name }
175+ className = { clsx (
176+ 'text-xl text-black no-underline underline-hover align-middle' ,
177+ { mr4 : index === ITEMS . length - 1 }
178+ ) }
179+ onClick = { item . tracking ? item . tracking : onLinkClick }
180+ >
181+ { item . name }
184182 </ Link >
185183 { index !== ITEMS . length - 2 && (
186184 < span className = "mx-2 align-middle font-bold text-black" >
@@ -231,10 +229,11 @@ export default function Navbar({ bgColor = 'bg-nsorange', logo, user }) {
231229 aria-hidden = { isMenuOpen }
232230 >
233231 < div className = "flex flex-col items-center text-center mt-8" >
234- < Link href = "/" >
235- < a className = "mobile-nav-menu-logo flex no-underline align-middle" >
236- < Logo dark = { logo . isDark } />
237- </ a >
232+ < Link
233+ href = "/"
234+ className = "mobile-nav-menu-logo flex no-underline align-middle"
235+ >
236+ < Logo dark = { logo . isDark } />
238237 </ Link >
239238 </ div >
240239 < div className = "mobile-nav-items text-center flex flex-col items-center justify-center flex-auto overflow-y-scroll" >
@@ -245,16 +244,15 @@ export default function Navbar({ bgColor = 'bg-nsorange', logo, user }) {
245244 key = { `menu-nav-link-${ index } ` }
246245 onClick = { item . onClick }
247246 >
248- < Link href = { item . link || '' } >
249- < a
250- className = { clsx (
251- 'mobile-nav-link align-middle chicagoflf' ,
252- logo . isDark ? 'black' : 'white'
253- ) }
254- onClick = { item . tracking ? item . tracking : onMobileLinkClick }
255- >
256- { item . name }
257- </ a >
247+ < Link
248+ href = { item . link || '' }
249+ className = { clsx (
250+ 'mobile-nav-link align-middle chicagoflf' ,
251+ logo . isDark ? 'black' : 'white'
252+ ) }
253+ onClick = { item . tracking ? item . tracking : onMobileLinkClick }
254+ >
255+ { item . name }
258256 </ Link >
259257 </ div >
260258 ) ) }
0 commit comments