mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: use new link component in navbar
This commit is contained in:
1 parent
5c328d0f4d
commit
0c5bf85bc5
2 files changed
+6
-6
No files matched your search
@@ -1,13 +1,13 @@
|
||||
'use client';
|
||||
|
||||
import { LinkProps } from '@radix-ui/themes';
|
||||
import { LinkProps, Link as RadixLink } from '@radix-ui/themes';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
export function Link({ href, onClick, ...props }: LinkProps) {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<Link
|
||||
<RadixLink
|
||||
href={href}
|
||||
onClick={(event) => {
|
||||
event.preventDefault();
|
||||
|
||||
Reference in new issue
Block a user