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 ->
After -> It lets the user know the current section they are in.
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](https://github.com/yogiyadav13/bookbrainz/assets/144247815/026a5453-d9d0-4857-beed-f56a8d9027e9)
After -> It lets the user know the current section they are in.
![Screenshot from 2024-07-05 16-10-50](https://github.com/yogiyadav13/bookbrainz/assets/144247815/0fd3a2ef-fafa-40ed-8384-9250a7306500)