Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKuznets committed Dec 10, 2024
1 parent 24306c0 commit 31f11fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import moviesFromServer from './api/movies.json';
export const App = () => (
<div className="page">
<div className="page-content">
<MovieList moviesFromServer={moviesFromServer} />
<MovieList movies={moviesFromServer} />
</div>

<div className="sidebar" data-cy="Sidebar">
Expand Down
4 changes: 2 additions & 2 deletions src/components/MovieList/MovieList.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { MovieCard } from '../MovieCard/MovieCard';
import './MovieList.scss';

export const MovieList = ({ moviesFromServer }) => (
export const MovieList = ({ movies }) => (
<div className="movies">
{moviesFromServer.map(movie => (
{movies.map(movie => (
<MovieCard movie={movie} key={movie.imdbId} />
))}
</div>
Expand Down

0 comments on commit 31f11fb

Please sign in to comment.