CS-Social-Good-CalPoly / Vera

6 stars 1 forks source link

Adding Prop Passing for All Pages #273

Closed daiwik-swaminathan closed 4 months ago

daiwik-swaminathan commented 6 months ago

This task follows up on the work done in issue #257 and its corresponding PR #270. As of right now, the prop that controls which page is underlined in the NavBar is passed only to Home, Stories, and StorySubmission. This task asks that you implement/add the same prop passing to the remaining pages: AdminPage, IndividualResourcePage, and IndividualStoryPage.

In the end, no matter where a user navigates to on the website, the appropriate part/section of the NavBar will always be underlined (right now, the underline disappears when you go to any of the following: AdminPage, IndividualResourcePage, and IndividualStoryPage).

We would like you to follow the same style/approach as the linked PR, so please reference that as you work.