sdmisra / AvianAnthems

This is an app that enables access to the beautiful music of the world around us
https://avian-anthems.vercel.app
2 stars 3 forks source link

Feat/begin detail view #27

Closed jmartin777 closed 1 year ago

jmartin777 commented 1 year ago

🛠️ Description of this branch

Created a linked button that is handled onClick. Everything is wired and functioning. get-info button changes the url and displays new state (single-bird display). *onClick for get-info button also shows the bird ID for filtering and displaying single-bird display

🧠 Context or Rationale for this code

What is helpful for team to know and understand about decisions made in this code.

Create a route that changes state for our last displayed state!

👀 Checks

✍🏽 Notes, Questions, What's Next

Route is now ready to have new state plugged in!

By using the type assertion as HTMLButtonElement within our get info button - we are telling TypeScript that event.target is an HTMLButtonElement and can be used to access the id property. (Type Script Assertion)

Screenshot

Screen Shot 2023-05-31 at 7 58 59 PM