1
0
Fork 0

wip(org): Working on stats/users pages

This commit is contained in:
joostdecock 2024-01-14 18:31:52 +01:00
parent 873539c92b
commit ffe938783f
13 changed files with 392 additions and 6 deletions

View file

@ -36,7 +36,9 @@ export const NavigationContextProvider = ({ children }) => {
* @param value {value} to set
*/
function updateSiteNav(path, value) {
setSiteNav(objUpdate(siteNav[locale], path, value))
const newNav = { ...siteNav }
newNav[locale] = objUpdate({ ...newNav[locale] }, path, value)
setSiteNav(newNav)
}
/*