Skip to content

feat(AR-21): remove navigation bars from add article screen#60

Merged
ar022 merged 2 commits into
developmentfrom
amitraikwar/AR-21/remove-nav-from-add-article
Jun 15, 2026
Merged

feat(AR-21): remove navigation bars from add article screen#60
ar022 merged 2 commits into
developmentfrom
amitraikwar/AR-21/remove-nav-from-add-article

Conversation

@ar022

@ar022 ar022 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description of changes

Requirement

  • Hide NavigationBar and SocialNavigation components when viewing the Add Article page.

Implementation

  • Used useLocation hook in Host.tsx to detect path name and check if it contains add_article29.
  • Conditionally render both components to exclude them on that route.

Ticket: https://ar1603.atlassian.net/browse/AR-21
Author: Amit Raikwar

ar022 added 2 commits June 15, 2026 14:58
- 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
- Cast AnimatePresence as any (SafeAnimatePresence) to avoid TS2786 build error
- Address typing conflicts between React JSX definitions and framer-motion
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/screens/host/Host.tsx 0.00% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ar022 ar022 merged commit 6ab3d6c into development Jun 15, 2026
4 checks passed
@ar1603 ar1603 self-assigned this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants