yogiyadav13 / bookbrainz

GNU General Public License v2.0
0 stars 24 forks source link

Fixed Issue #25 : Highlight the section in navbar when it is Active #49

Open rushil-118 opened 5 days ago

rushil-118 commented 5 days ago

Problem

Highlight the section in navbar when it is Active

Solution

Added a state variable and the value changes depending on the route and adds the class to have a background and make the particular section active. Made changes in the routes folder to add a prop to all the components of navBar.

Areas of Impact

Before -> 343044055-dcd4326e-d44f-4589-a8f4-ad91671bfd40

After -> It lets the user know the current section they are in. Screenshot from 2024-07-05 16-10-42 Screenshot from 2024-07-05 16-10-50