carlosvegap / capstone-kickoff

0 stars 0 forks source link

Refactor EXP get Preferences #68

Closed CarLosVegga closed 2 years ago

CarLosVegga commented 2 years ago

Hi everyone!

This is another PR.

In general the changes I made include:

Created the query for getting the feedback areas where Experience Makers want to be rated in queries/experience.js

Deleted

I call the query for getting those feedback areas in routes/experience.js

In ExperienceInfo.jsx I decided to include the solution for that problem where after rating an experience it was not automatically displaying the rated label, so I could have in this branch the most functional version and I didn't have to wait until all PR were approved.

Experience.jsx was about calling my endpoint for getting feedback areas and use the useContext to pass it down.

On Feedback.jsx I consume the the context, I pass down the active and inactiveIDs array, and I am pretending to retrieve the information of those IDs with the feedback context (that will be in the following PR that looks into that).

On the useSettings.jsx I just modify the URL that will be in charge of making the requests.