You are browsing as a guest. Sign up (or log in) to start making projects!

3h 49m 3s logged

I’ve added an option to filter by event locations :pochita-plush: :pochita: (I love pochita ❤️ )

so yeah not much to say ;_; you can filter by location but it took me a fair bit of time still I’m proud af bc I went from not knowing anything about nextJS and React to actually doing and making something with it :yipee:

technical stuff:
So the first thing I did was to modify the python api to store unique locations since I know more about python and I wasnt sure how to do it on frontend so I figured I might as well just use python for it


and as for actually displaying it when a user clicks a year, it updates the ?year= URL parameter. The renderTable.tsx component detects this URL change and fetches both the table events and the unique cities from the API. These cities are then saved to the cityData state and passed down as a prop to the DataTable component. Inside data-table.tsx, this cityData is fed into the Combobox to display the list of available cities.

0
5

Comments 0

No comments yet. Be the first!