From 0931fa8fe5f2b8c6cc37e3fd77e5a3e58af9c56a Mon Sep 17 00:00:00 2001 From: Maximus Date: Thu, 8 Sep 2022 12:13:20 +0300 Subject: [PATCH] fixed props --- src/components/typography/Link.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/typography/Link.tsx b/src/components/typography/Link.tsx index 184bbb7..442eeea 100644 --- a/src/components/typography/Link.tsx +++ b/src/components/typography/Link.tsx @@ -7,8 +7,7 @@ type Props = { children: React.ReactNode; disabled?: boolean; className?: string; -} & NavLinkProps & - Omit, "">; +} & NavLinkProps; function getURL(to: string): URL { try { @@ -26,12 +25,14 @@ export default function Link({ children, disabled, className, + style, ...props }: Props) { const link = getURL(to).hostname === window.location.hostname ? ( {children} @@ -39,6 +40,13 @@ export default function Link({ ) : (