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

Add tree selection menu next to info icon #629

Merged
merged 18 commits into from
Nov 7, 2024

Conversation

theosanderson
Copy link
Owner

@theosanderson theosanderson commented Nov 7, 2024

Add a dropdown menu next to the info icon in App.jsx to select a tree from the JSON list.

  • Import the Select component from ./components/Basic.
  • Add a state variable selectedTree to store the selected tree.
  • Add a Select component next to the info icon to display the tree options.
  • Update the useEffect hook to update the query when a tree is selected.

For more details, open the Copilot Workspace session.

Add a dropdown menu next to the info icon in `App.jsx` to select a tree from the JSON list.

* Import the `Select` component from `./components/Basic`.
* Add a state variable `selectedTree` to store the selected tree.
* Add a `Select` component next to the info icon to display the tree options.
* Update the `useEffect` hook to update the query when a tree is selected.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/theosanderson/taxonium?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Nov 7, 2024

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

Name Status Preview Comments Updated (UTC)
cov2tree ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 0:40am

theosanderson and others added 3 commits November 7, 2024 10:54
* Import `Select` component and add `selectedTree` state variable in `App.jsx`
* Add `Select` component next to the info icon to display tree options
* Update `useEffect` hook to update the path when a tree is selected and trigger a page refresh
* Hide the menu on mobile in `Basic.jsx`
@theosanderson theosanderson merged commit 72d9a7a into master Nov 7, 2024
18 checks passed
@theosanderson theosanderson deleted the add-tree-selection-menu branch November 7, 2024 13:00
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.

1 participant