We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6fcbc commit 9b42280Copy full SHA for 9b42280
apps/site/components/Link.tsx
@@ -2,11 +2,11 @@ import type { FC, HTMLProps } from 'react';
2
3
import { Link as LocalizedLink } from '@/navigation.mjs';
4
5
-type LinkProps = Omit<HTMLProps<HTMLAnchorElement>, 'href'> & {
6
- href?: string;
7
-};
8
-
9
-const Link: FC<LinkProps> = ({ children, href, ...props }) => {
+const Link: FC<HTMLProps<HTMLAnchorElement>> = ({
+ children,
+ href,
+ ...props
+}) => {
10
if (!href || href.toString().startsWith('http')) {
11
return (
12
<a href={href} {...props}>
0 commit comments