From fe94d5ae59a2c0521e34da8566351c36744f9b9e Mon Sep 17 00:00:00 2001 From: Angelina Gadzhieva Date: Mon, 24 Jun 2024 18:00:05 +0300 Subject: [PATCH] fix(MobileLogo): fix href prop --- src/components/MobileLogo/MobileLogo.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/MobileLogo/MobileLogo.tsx b/src/components/MobileLogo/MobileLogo.tsx index 0f5e78e..f355668 100644 --- a/src/components/MobileLogo/MobileLogo.tsx +++ b/src/components/MobileLogo/MobileLogo.tsx @@ -27,17 +27,8 @@ export const MobileLogo: React.FC = ({ onClick, className, }) => { - const hasClickHandler = typeof onClick === 'function'; const hasWrapper = typeof wrapper === 'function'; - const linkProps = hasClickHandler - ? {} - : { - target, - ref: target === '_self' ? undefined : 'noreferrer', - href, - }; - let logoIcon; if (iconSrc) { @@ -78,7 +69,13 @@ export const MobileLogo: React.FC = ({ {wrapper(logo, compact)} ) : ( - + {logo} );