Alice D & Aimee - Fire 🔥 - #21
Open
marks214 wants to merge 31 commits into
Open
Conversation
…nd styling sheets
…npm install axios)
Aao/front end api calls
…you try to search for a video (form not yet handled by Search.js)
…tead of text tiles. imported Select from react-select - want to make the videos selectable
Aao/front end api calls
drop of css, need to make video disappear after clicked
…ll back functions to update those states
duplication validations were done on the back end
…ful checkout message
added some styling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Video Store Consumer
Congratulations! You're submitting your assignment!
Comprehension Questions
App.jswhich makes api post request to the "checkout-url" which contains information about the title selected, the customer selected and a due-date (which is the result of calling a function fromApp.jsthat essentially adds 7 days to the current date). If the post request to rentals is successful, the user gets back an alert pop up notifying them that the video has been checked out by the customer. The function then sets back the selected customer and selected video to null values for future selections. If the checkout is not successful, the user gets an error message.onClickevent is used for adding videos to the library. For example, when the user hovers over the video poster in the search component, there are css effects, but the html tagfigcaptionhas anonClickevent listening for the user to click it. Once clicked theimageClickfunction posts the video to the library.App.jsTimeStamp is a function that returns the due date, in the correct format, for the video based on the current day.App.jsfile is the main component and is a container for all the other components.