Skip to content
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

Merged
merged 7 commits into from
Nov 5, 2024
Merged

Selected tab is stored in the route #34

merged 7 commits into from
Nov 5, 2024

Conversation

Rodri77
Copy link
Collaborator

@Rodri77 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.

@Rodri77 Rodri77 requested a review from pellicceama October 31, 2024 21:04
Copy link

vercel bot commented Oct 31, 2024

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

Name Status Preview Comments Updated (UTC)
openint ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2024 1:05am

Copy link
Collaborator

@pellicceama pellicceama left a 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

Copy link
Contributor

@tonyxiao tonyxiao left a 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) => {
Copy link
Contributor

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

@pellicceama pellicceama merged commit 6ad0716 into main Nov 5, 2024
4 checks passed
@pellicceama pellicceama deleted the tab-routing branch November 5, 2024 21:30
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