Skip to content

Conversation

@callumflack
Copy link

…using a page class to target the ZE styles

…using a page class to target the ZE styles
@vercel
Copy link

vercel bot commented Oct 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vault-gui ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 11:39PM (UTC)

return () => {
document.body.classList.remove(`page-${pathName}`);
};
}, []);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add [router.asPath] as a dependency here so it updates as routes change? Also, we'll need to remove the old path class before doing this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Thanks. Cleaning up the last effect (ie. lines 39–41) should remove that old path class.

Doing Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants