hack4impact-calpoly / ecologistics-web-scraper

https://ecologistics-web-scraper.vercel.app
5 stars 0 forks source link

Connect review route to frontend #145

Closed ryanchansf closed 3 months ago

ryanchansf commented 3 months ago

Now that we have the review route and frontend done, it's time to connect the two. In proposalTable.tsx, there's a handler function called handleReviewOKClick where you'll make the API call. When the user makes a selection for a review status, it'll open up a modal to confirm their selection. When they click OK, it should call this handler to make the PUT request (/api/projects).

Requirements:

Make sure the state is properly updated on success. If you have some extra time, please add error handling using a shadcn toast() to trigger an error for an unsuccessful project update.