-
-
-
- {movie.release_date && (
- {new Date(movie.release_date).getFullYear()}
- )}
-
-
-
-
+
+
+
+
+
+ {movie.release_date && (
+
+ {new Date(movie.release_date).getFullYear()}
+
+ )}
+
+
+
+
+
+
);
diff --git a/components/Movie/List.tsx b/components/Movie/List.tsx
index 23057e1..014822b 100644
--- a/components/Movie/List.tsx
+++ b/components/Movie/List.tsx
@@ -37,13 +37,13 @@ const List: FC
= ({ pages, hasNextPage, fetchNextPage }) => {
return (
<>
-
+
{pages.map((page) => (
{filterUnknownMovies(page.results)?.map((movie, index, array) => (
- setMovie(movie)}
ref={array.length / 2 !== index ? undefined : (element) => setLoader(element!)}
>
diff --git a/components/Movie/components/Rating/index.tsx b/components/Movie/components/Rating/index.tsx
index 4fecfa7..e0477a1 100644
--- a/components/Movie/components/Rating/index.tsx
+++ b/components/Movie/components/Rating/index.tsx
@@ -5,9 +5,10 @@ import useFavorites, { useFavoritesMutation } from '@/app/(site)/favorites/useFa
interface Props {
movie: Movie;
+ iconsFillColor?: string;
}
-const Rating: FC = ({ movie }) => {
+const Rating: FC = ({ movie, iconsFillColor = 'fill-accent-foreground' }) => {
const { map } = useFavorites();
const { add, remove } = useFavoritesMutation();
@@ -24,10 +25,10 @@ const Rating: FC = ({ movie }) => {
className='z-[2] cursor-pointer'
title={isFavorite ? 'Remove from favorites' : 'Add to favorite'}
>
-
+
-
+
{movie.vote_average?.toFixed(1)}
diff --git a/components/Movie/components/Title/index.tsx b/components/Movie/components/Title/index.tsx
index 17a2ff0..fe45702 100644
--- a/components/Movie/components/Title/index.tsx
+++ b/components/Movie/components/Title/index.tsx
@@ -5,18 +5,20 @@ import { useTheme } from '@/hooks/useTheme';
interface Props {
title: string;
+ hideGradient?: boolean;
+ className?: string;
}
-const Title: FC = ({ title }) => {
+const Title: FC = ({ title, hideGradient, className }) => {
const [isScrollableTitle, setIsScrollableTitle] = useState(false);
const [theme] = useTheme();
return (