File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/app/conf/2025/components Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { Badge } from "../../_components/badge"
1010import MenuIcon from "../pixelarticons/menu.svg?svgr"
1111import CloseIcon from "../pixelarticons/close.svg?svgr"
1212import { GraphQLConfLogoLink } from "./graphql-conf-logo-link"
13+ import { Anchor } from "../../_design-system/anchor"
1314
1415export interface NavbarProps {
1516 links : { href : string ; children : React . ReactNode ; "aria-disabled" ?: true } [ ]
@@ -79,27 +80,27 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
7980 < div className = "flex w-full flex-col lg:mt-0 lg:block" >
8081 { links . map (
8182 ( { "aria-disabled" : isDisabled , children, ...link } ) => (
82- < NextLink
83+ < Anchor
8384 aria-disabled = { isDisabled }
8485 key = { link . href }
8586 { ...link }
86- // if external link, open in new tab
87- { ...( link . href . startsWith ( "https" ) && {
88- target : "_blank" ,
89- rel : "noopener noreferrer" ,
90- } ) }
9187 className = { clsx (
9288 "p-5 underline-offset-4 hover:underline aria-disabled:pointer-events-none max-lg:text-base" ,
9389 pathname === link . href && "underline" ,
9490 ) }
91+ onClick = { ( ) => {
92+ if ( mobileDrawerOpen ) {
93+ setMobileDrawerOpen ( false )
94+ }
95+ } }
9596 >
9697 { children }
9798 { isDisabled && (
9899 < sup className = "ml-2" >
99100 < Badge className = "text-white" > Soon</ Badge >
100101 </ sup >
101102 ) }
102- </ NextLink >
103+ </ Anchor >
103104 ) ,
104105 ) }
105106 </ div >
You can’t perform that action at this time.
0 commit comments