We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c8faab commit 51e491dCopy full SHA for 51e491d
app/Navigation.tsx
@@ -1,4 +1,5 @@
1
'use client'
2
+import { cn } from '@/lib/utils'
3
import { Box } from '@recipes/box'
4
import {
5
Drawer,
@@ -106,7 +107,15 @@ export function NavigationHeader() {
106
107
function ActiveLink({ href, ...props }) {
108
let pathname = usePathname()
109
if (pathname === href) {
- return <Text {...props} />
110
+ return (
111
+ <p
112
+ {...props}
113
+ className={cn(
114
+ props.className,
115
+ 'font-medium underline underline-offset-4 decoration-transparent',
116
+ )}
117
+ />
118
+ )
119
}
120
return (
121
<Link
0 commit comments