From fa73184acf12db9a93927ac7c3f483bc8531313e Mon Sep 17 00:00:00 2001 From: Bharti Vilas Nagpure <104631882+BhartiNagpure@users.noreply.github.com> Date: Wed, 2 Aug 2023 21:00:40 +0530 Subject: [PATCH] movie card content fix --- src/components/Cards/MovieCard.jsx | 91 ++++++++++++++---------------- 1 file changed, 43 insertions(+), 48 deletions(-) diff --git a/src/components/Cards/MovieCard.jsx b/src/components/Cards/MovieCard.jsx index 574f02d9..88812d6f 100644 --- a/src/components/Cards/MovieCard.jsx +++ b/src/components/Cards/MovieCard.jsx @@ -66,33 +66,33 @@ const MovieCard = (props) => { return ( <> -
-
+
- {/* This is share icon */} - - -
-

{props.movie.title}

-
-
- - - {dayjs(props.movie.release_date).format("MMM D, YYYY")} - -
- + +
+

{props.movie.name}

+
+
+ + + {dayjs(props.movie.release_date).format("MMM D, YYYY")} + +
+ +
{props.type === 'movie' ? (

{props.movie.title}

-

- {props.movie.vote_average}/10 -

- ): ( + ) : ( -
-

{props.movie.name}

-

- {props.movie.vote_average}/10 -

+
)} +
+
-
- {/* pop up code */} - + {/* pop up code */} + {
@@ -216,7 +211,7 @@ const MovieCard = (props) => { @@ -234,7 +229,7 @@ const MovieCard = (props) => {