@@ -8,6 +8,7 @@ import { useQuery } from '@tanstack/react-query';
88import { privateInstance } from '@/apis/privateInstance' ;
99import ReviewTitle from './ReviewTitle' ;
1010import useUserStore from '@/stores/authStore' ;
11+ import cn from '@/lib/cn' ;
1112
1213import ReviewCardSkeleton from './Skeletons/ReviewCardSkeleton' ;
1314
@@ -58,11 +59,7 @@ function ReviewSection({
5859 key = { review . id }
5960 userName = { review . user . nickname }
6061 avatarSrc = { review . user . profileImageUrl }
61- date = { new Date ( review . createdAt ) . toLocaleDateString ( 'ko-KR' , {
62- year : 'numeric' ,
63- month : '2-digit' ,
64- day : '2-digit' ,
65- } ) }
62+ date = { review . createdAt . slice ( 0 , 10 ) . replace ( / - / g, '.' ) }
6663 reviewText = { review . content }
6764 />
6865 ) ) ;
@@ -71,7 +68,7 @@ function ReviewSection({
7168 if ( isLoading ) {
7269 return (
7370 < div className = 'mt-10 flex flex-col space-y-8' >
74- < div className = 'relative min-h-350 flex-col' >
71+ < div className = 'relative min-h-300 flex-col' >
7572 < ReviewTitle reviewCount = { reviewCount } rating = { rating } />
7673 { [ ...Array ( 3 ) ] . map ( ( _ , index ) => (
7774 < ReviewCardSkeleton key = { index } />
@@ -84,7 +81,7 @@ function ReviewSection({
8481 if ( ! reviewData || reviewData . reviews . length === 0 ) {
8582 return (
8683 < div className = 'mt-10 flex flex-col space-y-8' >
87- < div className = 'relative min-h-350 ' >
84+ < div className = 'relative min-h-300 ' >
8885 < ReviewTitle reviewCount = { reviewCount } rating = { rating } />
8986
9087 < div className = 'pointer-events-none absolute inset-0 z-10 flex h-full items-center justify-center select-none' >
@@ -107,8 +104,10 @@ function ReviewSection({
107104 < div className = 'mt-10 flex flex-col space-y-8' >
108105 < ReviewTitle reviewCount = { reviewCount } rating = { rating } />
109106
110- < div className = 'pointer-events-none relative min-h-350 select-none' >
111- < div className = { user ? '' : 'blur-sm' } > { ReviewComponent ( ) } </ div >
107+ < div className = 'pointer-events-none relative min-h-300 select-none' >
108+ < div className = { cn ( user ? '' : 'blur-sm' , 'mt-10' ) } >
109+ { ReviewComponent ( ) }
110+ </ div >
112111
113112 { ! user && (
114113 < div className = 'pointer-events-none absolute inset-0 z-10 flex h-full items-center justify-center select-none' >
0 commit comments