From feae02a29705cfc566f41232ccfd9cdb074f8de6 Mon Sep 17 00:00:00 2001
From: iqbalpa
Date: Fri, 12 Jul 2024 09:48:41 +0700
Subject: [PATCH] feat(watchlist): create watchlist button in movie detail page
---
src/modules/detailMovie/detailMovie.tsx | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/modules/detailMovie/detailMovie.tsx b/src/modules/detailMovie/detailMovie.tsx
index bd2f858..e3678b2 100644
--- a/src/modules/detailMovie/detailMovie.tsx
+++ b/src/modules/detailMovie/detailMovie.tsx
@@ -11,12 +11,16 @@ import Genres from '@/components/genres/genres';
import YearRuntime from '@/components/yearRuntime/yearRuntime';
import CrewList from '@/components/crewList/crewList';
import TopCast from '@/components/topCast/topCast';
+import { useSelector } from 'react-redux';
+import { RootState } from '@/store/userStore';
+import { Plus } from 'lucide-react';
interface IDetailMovieModule {
id: string;
}
const DetailMovieModule: React.FC = ({ id }) => {
+ const user = useSelector((state: RootState) => state.user.user);
const [movie, setMovie] = useState();
const [isLoading, setIsLoading] = useState(true);
@@ -77,7 +81,15 @@ const DetailMovieModule: React.FC = ({ id }) => {
{movie.overview}
-
+