Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/MovieList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const MovieList = ({
}
};

// Determine which movies to display based on the current page

const getMoviesToDisplay = () => {
if (currentPage === 'favorites') {
return sortMovies(favoriteMovies);
Expand All @@ -142,7 +142,7 @@ const MovieList = ({
}
};

// Get the title for the current page

const getPageTitle = () => {
if (currentPage === 'favorites') {
return 'My Favorites';
Expand Down Expand Up @@ -189,10 +189,10 @@ const MovieList = ({
{displayedMovies.length === 0 && !loading ? (
<div className="no-results">
{currentPage === 'favorites'
? "You haven't added any favorites yet"
? "you havent added any favorites yet"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: haven't v/s havent

: currentPage === 'watched'
? "You haven't marked any movies as watched yet"
: "No movies found"}
? "you haven't marked any movies as watched yet"
: "no movies found"}
</div>
) : (
<section className="movie-list">
Expand Down
7 changes: 7 additions & 0 deletions src/MovieModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ const MovieModal = ({ movie, onClose }) => {
<p>{movieDetails.overview}</p>
</div>
</div>

<div className='modal-trailer'>
<div className='trailer-container'>
<iframe width="560" height="315" src={movie.poster_path `${posterBaseUrl}${movie.poster_path}`} title="YouTube video player" ></iframe>
</div>

</div>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/SideBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
width: 200px;
left: 0;
top: 0;
padding-top: 80px;
padding-top: 10rem;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
z-index: 900;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SideBar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './SideBar.css';
import 'SideBar.css';

const SideBar = ({ currentPage, onPageChange }) => {
const pages = [
Expand Down