fix: Duplicate navigation on home and profile pages #26
Labels
No labels
backend
bug
completed
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
in-progress
invalid
performance
phase-1
Phase1
Phase2
Phase3
planning
question
refactor
security
test
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Kalle/ATM#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The home page (
page.tsx) and profile page both import the oldNavigationcomponent, while the layout already providesMobileNavigationfor ALL pages. This creates:Solution
Navigationimport from home and profile pagesMobileNavigation(the layout-level component)Navigation.tsxcomponent entirelyFiles Affected
src/app/[locale]/page.tsx- Remove Navigation importsrc/app/[locale]/profile/page.tsx- Remove Navigation importsrc/components/MobileNavigation.tsx- Add missing nav itemssrc/components/Navigation.tsx- Delete (replaced by MobileNavigation)Fixed in commit
36f3b12