From 5c01cab4540c9f4994c4f5295d53e755eea1b282 Mon Sep 17 00:00:00 2001 From: Amit Raikwar Date: Mon, 15 Jun 2026 14:58:27 +0530 Subject: [PATCH 1/2] feat(AR-21): remove navigation bars from add article screen - Conditionally render NavigationBar and SocialNavigation based on route pathname - Hide both navigation bars on the add_article29 screen to ensure cleaner workspace - Ensure normal navigation bars remain visible on all other pages --- src/screens/host/Host.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/screens/host/Host.tsx b/src/screens/host/Host.tsx index afa5c16..0a9b35f 100644 --- a/src/screens/host/Host.tsx +++ b/src/screens/host/Host.tsx @@ -1,12 +1,15 @@ import { Box } from '@chakra-ui/react'; import { Footer, NavigationBar, SocialNavigation } from '@screens/common'; -import { Outlet } from 'react-router-dom'; +import { Outlet, useLocation } from 'react-router-dom'; const Host = () => { + const { pathname } = useLocation(); + const isAddArticle = pathname.includes('add_article29'); + return ( - - + {!isAddArticle && } + {!isAddArticle && }