Skip to content

Commit

Permalink
update html-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Irina-anat committed Feb 22, 2024
1 parent 75afaee commit a1454e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const Home = () => {
fetchTrendingMovies().then(response => setMovies(response))
}, []);

return <div className={css.container}>
return <main className={css.container}>
<h1 className={css.trending__title}>Trending today</h1>
<MoviesList movies={movies} />
</div>
</main>
};

export default Home;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/MovieDetails/MovieDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const MovieDetails = () => {
}, [movieId]);

return (
<div className={css.movie__container}>
<main className={css.movie__container}>
<Link to={backLinkLocationRef.current}>
{' '}
<button type="button">Go back</button>
Expand Down Expand Up @@ -80,7 +80,7 @@ const MovieDetails = () => {
<Suspense fallback={<Loader/>}>
<Outlet />
</Suspense>
</div>
</main>
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/pages/Movies/Movies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import css from './Movies.module.css';
fetchSearchMovies(query).then(response => setMovies([...response]));
}, [query]);

return (<div className={css.container__search}>
return (<main className={css.container__search}>
<SearchForm location={location} onSubmit={handleSubmit} />
{movies.length > 0 && <MoviesList movies={movies} />}
</div>)
</main>)
};

export default Movies;
Expand Down

0 comments on commit a1454e4

Please sign in to comment.