-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erik feature #25
Erik feature #25
Conversation
…dashboard. Didn't get it, but reverted to how it was
… fake API when clicking an event on the dashboard
…etDetails.js is no longer needed, EventDetails.js does what it should
…wiki. They only have one event so far
Conflicts in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the merge conflict and tested Erik Feature's branch on my local machine, everything work fine. Can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested. no conflict.
I have connected links from the dashboard to an API using mockaroo, a fake API builder used for testing. Right now when a link from the dashboard is clicked, data is loaded into the details page of the app. This works by fetching the API from the URL, then getting an API response, receiving JSON data, then using the setState() method to update the state of the object that will be displayed. I'm storing the props id in a variable called id, and the specific event id in a variable called eventID. I then compare the two in order to tell the app which event to display.