Closed ANicholasson closed 3 years ago
See docs for example https://reactrouter.com/web/api/NavLink
This will greatly improve the readability of the current code by removing the ugly management of selected menu item in: https://github.com/AutoPacker-OSS/autopacker/blob/bb207c29c0da19e836ff3f24a461f4020287427c/web-application/src/store/reducers/generalReducer.js#L43 (function selectMenuOption & toggleSubMenu).
These and there corresponding actions can be deleted, and we can use the
This has been done for profileDashboard routes
https://reactrouter.com/web/api/NavLink