File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 33import * as React from "react" ;
44import Link from "next/link" ;
55import { useSelectedLayoutSegment } from "next/navigation" ;
6-
7- import type { MainNavItem } from "@/types" ;
8- import { siteConfig } from "@/config/site" ;
96import { cn } from "@/lib/utils" ;
7+ import { siteConfig } from "@/config/site" ;
108import { Icons } from "@/components/icons" ;
119import { buttonVariants } from "@/components/ui/button" ;
1210import { MobileNav } from "@/components/mobile-nav" ;
11+ import type { MainNavItem } from "@/types" ;
1312
1413interface MainNavProps {
1514 items ?: MainNavItem [ ]
1615}
1716
1817export function MainNav ( { items } : MainNavProps ) {
19- const segment = useSelectedLayoutSegment ( )
20- const [ showMobileMenu , setShowMobileMenu ] = React . useState < boolean > ( false )
18+ const segment = useSelectedLayoutSegment ( ) ;
19+ const [ showMobileMenu , setShowMobileMenu ] = React . useState < boolean > ( false ) ;
20+
21+ const host = window && window . location . origin ;
2122
2223 return (
2324 < header >
@@ -66,7 +67,7 @@ export function MainNav({ items }: MainNavProps) {
6667 </ div >
6768 < nav >
6869 < Link
69- href = "/ resume"
70+ href = { ` ${ host } /001-olabode-lawal-shittabey- resume.pdf` }
7071 className = { cn (
7172 buttonVariants ( { variant : "secondary" , size : "sm" } ) ,
7273 "px-4 gap-2"
You can’t perform that action at this time.
0 commit comments