Previously the underline was hardcoded, and to support the architecture of universal rendering, we'd need to read the URL from state, and work out which link to underline based on that. Unfortunately, I ran into an issue where I could not use redux connect on the container which rendered the navigation, making it impossible to access store state.
Spent 2-3 hours attempting to debug, and after discussing with Andrew and confirming with Sari, we've decided it best to not spend more time for now - website-next only handles the Events and Join Us pages currently, which both have clear titles. It should be a straightforward fix if we transition these to the website-honestly architecture, otherwise we can dedicate more dev time if we don't end up transitioning.
This updates the ordering to the new one as @Monikamu mentioned here https://github.com/redbadger/website-honestly/issues/200
Previously the underline was hardcoded, and to support the architecture of universal rendering, we'd need to read the URL from state, and work out which link to underline based on that. Unfortunately, I ran into an issue where I could not use redux connect on the container which rendered the navigation, making it impossible to access store state.
Spent 2-3 hours attempting to debug, and after discussing with Andrew and confirming with Sari, we've decided it best to not spend more time for now - website-next only handles the Events and Join Us pages currently, which both have clear titles. It should be a straightforward fix if we transition these to the website-honestly architecture, otherwise we can dedicate more dev time if we don't end up transitioning.
Lets discuss Monday when Alex is back.