-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove unnecessary hook #6120
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Running Lighthouse audit... |
cc @nodejs/nodejs-website requesting this as a fast-track mostly because it's supposed to be a small refactor/fix to unblock other components |
Co-authored-by: canerakdas <canerakdas@gmail.com> Signed-off-by: Claudio W <cwunder@gnome.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
This PR removes a Hook that is pretty much useless given we have the
ActiveLink
component; This PR also updates the ActiveLink component to have same logic features as the previous Hook and updates the SideNavigation Component making it RSC-compatible and subsequently making the DocsLayout compatible.This PR also updates related styles as now the "active" class is on the link.
Validation
Deployment should work; Docs pages should work; Active Links should have active styling as before (Header and Side Navigation)
Related Issues
amannn/next-intl#611