Title: Make Navbar Page Heading Dynamic Based on Sidebar Navigation
Description:
Currently, the page heading in the navbar is hardcoded as "Dashboard" on every page, regardless of which page is active. The sidebar allows navigation between different pages such as Dashboard, Projects, and Schedule, and the main content updates correctly based on the selected page. However, the page heading in the navbar should dynamically update to reflect the active page (e.g., "Projects" when the user is on the Projects page, and "Schedule" when on the Schedule page).
Steps to Reproduce:
Navigate to the page with the sidebar and navbar.
Click on any sidebar option, such as "Projects" or "Schedule."
Notice that the route updates and the main content changes, but the navbar heading remains static as "Dashboard."
Expected Behavior:
The page heading in the navbar should dynamically update to reflect the active page based on the selected sidebar navigation option.
Actual Behavior:
The navbar heading remains hardcoded as "Dashboard," even when navigating to other pages.
Proposed Solution:
Implement logic to dynamically update the navbar heading based on the current route or selected page from the sidebar.
Additional Context:
The sidebar contains options for pages such as Dashboard, Projects, Schedule, etc.
The main content updates correctly when navigating via the sidebar, but the navbar page heading remains static.
Title: Make Navbar Page Heading Dynamic Based on Sidebar Navigation
Description:
Currently, the page heading in the navbar is hardcoded as "Dashboard" on every page, regardless of which page is active. The sidebar allows navigation between different pages such as Dashboard, Projects, and Schedule, and the main content updates correctly based on the selected page. However, the page heading in the navbar should dynamically update to reflect the active page (e.g., "Projects" when the user is on the Projects page, and "Schedule" when on the Schedule page).
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
Proposed Solution:
Additional Context:
Screenshots (if applicable):