From 785595b0f4b76f9e180a78e031977f590825ab9f Mon Sep 17 00:00:00 2001 From: valyukhov Date: Mon, 25 Nov 2024 08:46:56 +0300 Subject: [PATCH] fix: :bug: fix routing in main page --- components/StartPage/SectionBlock.js | 9 --------- components/StartPage/StartPage.js | 8 ++++---- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/components/StartPage/SectionBlock.js b/components/StartPage/SectionBlock.js index 0f588f7d..c4fc6746 100644 --- a/components/StartPage/SectionBlock.js +++ b/components/StartPage/SectionBlock.js @@ -1,4 +1,3 @@ -import Link from 'next/link' import { useRouter } from 'next/router' import Close from 'public/icons/close.svg' @@ -41,14 +40,6 @@ function SectionBlock({ showSection ? '' : 'hidden' }`} /> - {showSection && ( - e.stopPropagation()} - scroll={false} - > - )} ) } diff --git a/components/StartPage/StartPage.js b/components/StartPage/StartPage.js index 40d10652..454d43fb 100644 --- a/components/StartPage/StartPage.js +++ b/components/StartPage/StartPage.js @@ -136,13 +136,13 @@ function StartPage({ defaultContentKey = null }) { }) } } - + const mainLink = router.pathname === '/' ? `/${contentRoutes['logo']}` : '/' return ( <>
- +
router.replace(mainLink)}> } @@ -266,7 +266,7 @@ function StartPage({ defaultContentKey = null }) { isLogo={true} label={} /> - +
{!showSections.signIn && (