fix: use new link component in navbar

This commit is contained in:
TrèsAbhi committed 2024-06-03 18:07:01 -05:00
1 parent 5c328d0f4d
commit 0c5bf85bc5
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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();