forked from AdaGold/video-store-consumer
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Alice D & Aimee - Fire 🔥 #21
Open
marks214
wants to merge
31
commits into
Ada-C14:master
Choose a base branch
from
marks214:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
…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
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.js
which 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.js
that 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.onClick
event 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 tagfigcaption
has anonClick
event listening for the user to click it. Once clicked theimageClick
function posts the video to the library.App.js
TimeStamp is a function that returns the due date, in the correct format, for the video based on the current day.App.js
file is the main component and is a container for all the other components.