himeshparashar / Social-Morph

https://socialmorph-himeshparashars-projects.vercel.app
14 stars 39 forks source link

Make Navbar Page Heading Dynamic Based on Sidebar Navigation #158

Open himeshparashar opened 1 week ago

himeshparashar commented 1 week ago

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:

  1. Navigate to the page with the sidebar and navbar.
  2. Click on any sidebar option, such as "Projects" or "Schedule."
  3. Notice that the route updates and the main content changes, but the navbar heading remains static as "Dashboard."

Expected Behavior:

Actual Behavior:

Proposed Solution:

Additional Context:

Screenshots (if applicable):

image

poonam17122004 commented 1 week ago

@himeshparashar sir please assign me this

himeshparashar commented 6 days ago

@poonam17122004 you can start working on this