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

Handle occurrence detail view tab state as a search param #664

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

annavik
Copy link
Member

@annavik annavik commented Jan 8, 2025

Fixes #662

To fix this, we use our already existing hook useSelectedView. We use this hook for the project summary tabs and also for the table/gallery state in main views. We update this took to handle a custom search param key (so we can use "tab" instead of "view" to avoid conflicts with the occurrence main view).

Copy link

netlify bot commented Jan 8, 2025

Deploy Preview for ami-dev ready!

Name Link
🔨 Latest commit e5d82e1
🔍 Latest deploy log https://app.netlify.com/sites/ami-dev/deploys/677ea3ebe6d59600083be0eb
😎 Deploy Preview https://deploy-preview-664--ami-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72
Accessibility: 89
Best Practices: 92
SEO: 100
PWA: 80
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

Make the state of Occurrence detail tabs details sticky
2 participants