From e132ab6b21d65ec9a60ba8fce1f9a4acf1ca352c Mon Sep 17 00:00:00 2001 From: jeafreezy Date: Tue, 25 Feb 2025 09:45:33 +0100 Subject: [PATCH 1/7] fix: wip --- .../start-mapping/components/logo-with-dropdown.tsx | 12 +++++++++--- frontend/src/layouts/root-layout.tsx | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/features/start-mapping/components/logo-with-dropdown.tsx b/frontend/src/features/start-mapping/components/logo-with-dropdown.tsx index 297aaffd..49f3669b 100644 --- a/frontend/src/features/start-mapping/components/logo-with-dropdown.tsx +++ b/frontend/src/features/start-mapping/components/logo-with-dropdown.tsx @@ -6,6 +6,7 @@ import { Link } from "@/components/ui/link"; import { navLinks } from "@/constants/general"; import { NavLogo } from "@/components/layout"; import { useNavigate } from "react-router-dom"; +import { APPLICATION_ROUTES } from "@/constants"; type BrandLogoWithDropDownProps = { isOpened: boolean; @@ -18,6 +19,7 @@ export const BrandLogoWithDropDown = function BrandLogoWithDropDown({ onClose, onShow, }: BrandLogoWithDropDownProps) { + const navigate = useNavigate(); const navItems = navLinks.map((link, id) => (
  • )); - - const navigate = useNavigate(); return ( diff --git a/frontend/src/layouts/root-layout.tsx b/frontend/src/layouts/root-layout.tsx index c3b65b5d..75c19e96 100644 --- a/frontend/src/layouts/root-layout.tsx +++ b/frontend/src/layouts/root-layout.tsx @@ -39,7 +39,7 @@ export const RootLayout = () => { > - {!pathname.includes(APPLICATION_ROUTES.AUTH_CALLBACK) && + {!pathname.includes(APPLICATION_ROUTES.START_MAPPING_BASE) && !pathname.includes(APPLICATION_ROUTES.AUTH_CALLBACK) &&