This week, you will be adding the data in our database to the project modal! What you will need to do is:
Create a function that will query the database for a specific project_id
a. Create a query file (.tsx) inside api >> supabase >> queries
b. Query all the information
Change your project modal to only collect a project_id prop (also change this in the home page!)
Add the queried information for a specific project to the modal you made last week. For now, set the project_id temporarily to 1. You will need to display the following properties:
a. Project Name
b. Developer
c. Renewable Energy Category
d. Size (watts)
e. Project Status
f. Additional Information
Some tips:
Take a look at useEffects to see how to query data when the page renders!
For some reference, Deena's sprint from last week used useEffects
This week, you will be adding the data in our database to the project modal! What you will need to do is:
Some tips:
PR Reviewers: Deena (@deenasun) and Monique (@itsliterallymonique)