updated README file
This commit is contained in:
@@ -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;
|
||||
@@ -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") {
|
||||
|
||||
@@ -51,7 +51,7 @@ class MainContent extends Component {
|
||||
<TopRated />
|
||||
<ActionMovies />
|
||||
<ComedyMovies />
|
||||
<HorrorMovies />
|
||||
{/* <HorrorMovies /> */}
|
||||
<Documentaries />
|
||||
</div>
|
||||
<Footer />
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user