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"
10
10
import MenuIcon from "../pixelarticons/menu.svg?svgr"
11
11
import CloseIcon from "../pixelarticons/close.svg?svgr"
12
12
import { GraphQLConfLogoLink } from "./graphql-conf-logo-link"
13
+ import { Anchor } from "../../_design-system/anchor"
13
14
14
15
export interface NavbarProps {
15
16
links : { href : string ; children : React . ReactNode ; "aria-disabled" ?: true } [ ]
@@ -79,27 +80,27 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
79
80
< div className = "flex w-full flex-col lg:mt-0 lg:block" >
80
81
{ links . map (
81
82
( { "aria-disabled" : isDisabled , children, ...link } ) => (
82
- < NextLink
83
+ < Anchor
83
84
aria-disabled = { isDisabled }
84
85
key = { link . href }
85
86
{ ...link }
86
- // if external link, open in new tab
87
- { ...( link . href . startsWith ( "https" ) && {
88
- target : "_blank" ,
89
- rel : "noopener noreferrer" ,
90
- } ) }
91
87
className = { clsx (
92
88
"p-5 underline-offset-4 hover:underline aria-disabled:pointer-events-none max-lg:text-base" ,
93
89
pathname === link . href && "underline" ,
94
90
) }
91
+ onClick = { ( ) => {
92
+ if ( mobileDrawerOpen ) {
93
+ setMobileDrawerOpen ( false )
94
+ }
95
+ } }
95
96
>
96
97
{ children }
97
98
{ isDisabled && (
98
99
< sup className = "ml-2" >
99
100
< Badge className = "text-white" > Soon</ Badge >
100
101
</ sup >
101
102
) }
102
- </ NextLink >
103
+ </ Anchor >
103
104
) ,
104
105
) }
105
106
</ div >
You can’t perform that action at this time.
0 commit comments