refacted MainContent component

This commit is contained in:
andres alcocer
2020-08-01 17:04:37 -04:00
parent 139a28dc10
commit cd942334ea
10 changed files with 99 additions and 364 deletions

View File

@@ -1,9 +1,7 @@
import React from 'react';
// import MovieGenre from './components/MovieGenre';
import MovieGenre from '../components/MovieGenre';
const getMovieRows = (movies, url) => {
console.log('getMovieRow() ', movies, url);
const movieRow = movies.map((movie) => {
let movieImageUrl =
'https://image.tmdb.org/t/p/w500/' + movie.backdrop_path;
@@ -31,7 +29,6 @@ const getMovieRows = (movies, url) => {
};
export default function DisplayMovieRow(props) {
console.log('DisplayMovieRow.render()', props.movies);
let movies = getMovieRows(props.movies, props.url);
return (
<>