Skip to content
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

Ports - Laneia & Margaret #23

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
8d0291f
app set up
msfinnan Jun 24, 2019
1aa77d2
created new component files
msfinnan Jun 24, 2019
6383ffc
can show all movies in library in app
msfinnan Jun 24, 2019
d56ee92
added customer and movie components
msfinnan Jun 25, 2019
0271b66
renamed library to MovieList and Customers to CustomerList
msfinnan Jun 25, 2019
04cb166
working on displaying all customers and all movies
msfinnan Jun 25, 2019
5564c98
added get requests for customers and movies to the same componentDidM…
msfinnan Jun 25, 2019
1549d29
added React Router to App
msfinnan Jun 25, 2019
54f3d19
react router working and can show all movies or all customers
msfinnan Jun 25, 2019
bb8fb8a
added functionality to select customer and select movie
msfinnan Jun 25, 2019
bbd69a0
added prop types
msfinnan Jun 25, 2019
8c5549c
shows selected customer id and movie id
msfinnan Jun 25, 2019
b98d3c0
displaying selected customer id and name, selected movie id and title
msfinnan Jun 25, 2019
695c158
can make post request to check out movie to customer
msfinnan Jun 25, 2019
f8ce2b1
trying to get search working
Jun 26, 2019
35e021c
fixed some bugs, not all
Jun 26, 2019
4d9eb38
fixed display movies bug, still working on rental checkout and search
Jun 26, 2019
f9b7fb0
add back in selected customer movie display
Jun 26, 2019
83ff668
explored api things, rolled back changes, fixed bug in checkout
msfinnan Jun 26, 2019
d7237f4
checkout movie is working
msfinnan Jun 26, 2019
8156dff
added error handling for checkout, gives error if no movie or no user…
msfinnan Jun 26, 2019
3738e36
error messages and success message added for movie checkout
msfinnan Jun 26, 2019
aea6904
basic search functionality, cannot select from it
Jun 26, 2019
60b704b
adding in functions to make add to library from search possible, not …
Jun 26, 2019
77a4afc
add movie to db works, but need to handle if movie is already in db
Jun 27, 2019
744ee26
fixed bug in select movie
Jun 27, 2019
4205a08
added movieLookUp method to MovieList.js
Jun 27, 2019
05576d9
moved movie state to app.js
Jun 27, 2019
fbcd021
movie search if already in database displays message instead of butto…
Jun 27, 2019
6b33f2f
search can now load movies independently of clicking movies yay
Jun 27, 2019
e6e5d7d
added back styling to master:
msfinnan Jun 27, 2019
82b5433
fixed styling
msfinnan Jun 27, 2019
391ffae
fixed addMovie bug
Jun 28, 2019
b426b00
removed console logs, made selection card only render if a movie or u…
msfinnan Jun 28, 2019
c28b4b7
added prop types
msfinnan Jun 28, 2019
5abea48
fixed weird image bug
Jun 28, 2019
3bf4f5f
clear state of selected customer and movie after check out
Jun 28, 2019
7bc4ddd
add background color, fonts, minor styling
Jun 28, 2019
c06f6e7
merge conflicts solved and bug for when there is no releae date fixed
msfinnan Jun 28, 2019
6cc8b21
added bootstrap card to search
msfinnan Jun 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed addMovie bug
  • Loading branch information
laneia committed Jun 28, 2019
commit 391ffae862ff8c656ad6050149a9f6b333b2cce0
6 changes: 2 additions & 4 deletions src/components/Search.js
Original file line number Diff line number Diff line change
@@ -78,17 +78,15 @@ class Search extends Component {

addMovie = (movie) => {
return () => {
const movieInfo = {
axios.post('http://localhost:3000/movies', {
key: movie.id,
title: movie.title,
overview: movie.overview,
release_date: movie.release_date,
image_url: movie.image_url,
external_id: movie.external_id,
inventory: 27
};

axios.post('http://localhost:3000/movies', movieInfo)
})
.then((response) => {
})
.catch((error) => {