-
Notifications
You must be signed in to change notification settings - Fork 7
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
Selected tab is stored in the route #34
Conversation
Rodri77
commented
Oct 31, 2024
- selected tab comes from route, so reload keeps the current tab.
- Update connect button when there are no connections so it redirects to the add connections tab.
- Fix warning for missing key.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Nice. Clean! Will add T as a reviewer to make sure this approach aligns
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.
Added a non-blocking comment
@@ -41,6 +47,14 @@ export function ConnectionPortal({className}: ConnectionPortalProps) { | |||
}, | |||
}) | |||
|
|||
const navigateToTab = (tab: string) => { |
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.
I'd use this library rather than re-inventing the wheel ourselves here. https://www.npmjs.com/package/next-usequerystate