chingu-voyages / v8-geckos-team-07

Habit-Tracker | Voyage-8 | https://chingu.io/
https://habit-tracker-gecko.herokuapp.com/
4 stars 4 forks source link

GET Request #81

Closed pjconnolly12 closed 5 years ago

pjconnolly12 commented 5 years ago

Added GET request

Added request in Dashboard to bring in habit info for user -currently uses Habit ID to grab the data -I manually put in a habit id for now, later I can update that to populate with the user email so it grabs the habit they have created. if their email doesn't exist within the db then we can set it up so that the Create Habit modal pops up for them to create one

pjconnolly12 commented 5 years ago

Because the Habit ID is hardcoded in for now due to testing, everything just loads in the background. So to test functionality you just have to open the dev tools, and make sure there is no error message first, then open the React Dev tools and check the state of habitData, it should be an array of all the habit data.

We can now pass that state down to all the widgets as props so you have all the habit data at your fingertips!

paulywill commented 5 years ago

Because the Habit ID is hardcoded in for now due to testing, everything just loads in the background. So to test functionality you just have to open the dev tools, and make sure there is no error message first, then open the React Dev tools and check the state of habitData, it should be an array of all the habit data.

We can now pass that state down to all the widgets as props so you have all the habit data at your fingertips!

Confirmed! Working as described.

image