updated README file

This commit is contained in:
andres alcocer
2019-04-24 10:29:44 -04:00
parent b5a263e46a
commit d5cda17f1e
7 changed files with 95 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
const movieRow = (props) => (
const Movie = (props) => (
<div className="movie">
<div onClick={props.movieDetails} className="movie__column-poster">
<img src={props.movieImage} alt="" className="movie__poster" />
@@ -8,4 +8,4 @@ const movieRow = (props) => (
</div>
);
export default movieRow;
export default Movie;

View File

@@ -82,7 +82,6 @@ class Layout extends Component {
/** Make the appropriate API call to get the details for a single movie or tv show. */
if (movie.media_type === "movie") {
const movieId = movie.id;
console.log(movie.id);
url = `https://api.themoviedb.org/3/movie/${movieId}?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0`;
} else if (movie.media_type === "tv") {

View File

@@ -51,7 +51,7 @@ class MainContent extends Component {
<TopRated />
<ActionMovies />
<ComedyMovies />
<HorrorMovies />
{/* <HorrorMovies /> */}
<Documentaries />
</div>
<Footer />

View File

@@ -3,7 +3,7 @@ import React from 'react';
export function getMovieRows(movies, url) {
const movieRow = movies.map((movie) => {
let movieImageUrl = "https://image.tmdb.org/t/p/original/" + movie.backdrop_path;
let movieImageUrl = "https://image.tmdb.org/t/p/w500/" + movie.backdrop_path;
if (url === "/discover/tv?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0&with_networks=213") {
movieImageUrl = "https://image.tmdb.org/t/p/original/" + movie.poster_path;
}