Skip to content

Commit 9b42280

Browse files
committed
chore: simplify link props
1 parent 2e6fcbc commit 9b42280

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/site/components/Link.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import type { FC, HTMLProps } from 'react';
22

33
import { Link as LocalizedLink } from '@/navigation.mjs';
44

5-
type LinkProps = Omit<HTMLProps<HTMLAnchorElement>, 'href'> & {
6-
href?: string;
7-
};
8-
9-
const Link: FC<LinkProps> = ({ children, href, ...props }) => {
5+
const Link: FC<HTMLProps<HTMLAnchorElement>> = ({
6+
children,
7+
href,
8+
...props
9+
}) => {
1010
if (!href || href.toString().startsWith('http')) {
1111
return (
1212
<a href={href} {...props}>

0 commit comments

Comments
 (0)