Skip to content

Commit 0e10444

Browse files
committed
Fix favicon
1 parent 33c86e9 commit 0e10444

File tree

1 file changed

+5
-1
lines changed
  • apps/landing/src/components/Header

1 file changed

+5
-1
lines changed

apps/landing/src/components/Header/Menu.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
import { Text } from '@devup-ui/react'
33
import { usePathname } from 'next/navigation'
44

5+
import { URL_PREFIX } from '../../constants'
6+
57
interface MenuProps {
68
children?: React.ReactNode
79
keyword: string
810
}
911

1012
export function Menu({ children, keyword }: MenuProps) {
1113
const path = usePathname()
12-
const selected = path.startsWith(`/${keyword}`)
14+
const selected =
15+
path.startsWith(`${URL_PREFIX}/${keyword}`) ||
16+
path.startsWith(`/${keyword}`)
1317
return (
1418
<Text
1519
color={selected ? '$primary' : '$title'}

0 commit comments

Comments
 (0)