From a0df36e2dd48f81260e4861ec17944d0a255f43c Mon Sep 17 00:00:00 2001 From: iqbalpa Date: Thu, 11 Jul 2024 07:12:37 +0700 Subject: [PATCH] feat(detail): update the positioning --- src/components/card/Card.tsx | 8 ++++++-- src/modules/detailMovie/detailMovie.tsx | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/card/Card.tsx b/src/components/card/Card.tsx index 2f4f037..e6c946d 100644 --- a/src/components/card/Card.tsx +++ b/src/components/card/Card.tsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import Image from 'next/image'; import { Movie } from '@/constant/movie'; import { Skeleton } from '../ui/skeleton'; +import Link from 'next/link'; interface ICard { movie: Movie; @@ -13,7 +14,10 @@ const Card: React.FC = ({ movie }) => { const [isLoading, setIsLoading] = useState(true); return ( -
+
{movie.release_date ? ( @@ -34,7 +38,7 @@ const Card: React.FC = ({ movie }) => { onLoadingComplete={() => setIsLoading(false)} onLoad={() => setIsLoading(false)} /> -
+ ); }; diff --git a/src/modules/detailMovie/detailMovie.tsx b/src/modules/detailMovie/detailMovie.tsx index 600a4e6..827c4b8 100644 --- a/src/modules/detailMovie/detailMovie.tsx +++ b/src/modules/detailMovie/detailMovie.tsx @@ -35,7 +35,7 @@ const DetailMovieModule: React.FC = ({ id }) => { return (
-
+