feat: 영상 공유·포스터 썸네일·좋아요 상태를 서버 연동으로 전환

This commit is contained in:
skkim committed 2026-08-18 11:02:29 +09:00
1 parent 9c0c3de35f
commit 3566c1f7bc
10 files changed
+146 -69

No files matched your search

+10 -1
View File
@@ -248,7 +248,15 @@ const MyContentsPage: React.FC<MyContentsPageProps> = ({ onNavigate }) => {
style={{ cursor: 'pointer' }}
onClick={() => setSelectedVideoId(video.video_id)}
>
{video.result_movie_url ? (
{video.poster_url ? (
<img
src={video.poster_url}
alt={video.store_name}
loading="lazy"
decoding="async"
className="content-video-preview"
/>
) : video.result_movie_url ? (
<VideoPreviewCard
src={video.result_movie_url}
className="content-video-preview"
@@ -283,6 +291,7 @@ const MyContentsPage: React.FC<MyContentsPageProps> = ({ onNavigate }) => {
videoId={video.video_id}
storeName={video.store_name}
region={video.region}
posterUrl={video.poster_url}
commentCount={video.comment_count ?? 0}
initialLikeCount={video.like_count ?? 0}
initialIsLiked={video.is_liked_by_me}