fix: 공유하기 및 UI 수정
This commit is contained in:
1 parent
4dff60c1ba
commit
17319e950e
14 files changed
+169
-274
No files matched your search
@@ -14,6 +14,8 @@ interface ContentCardSocialActionsProps {
|
||||
contentType?: ContentType;
|
||||
storeName: string;
|
||||
region?: string;
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
commentCount: number;
|
||||
initialLikeCount: number;
|
||||
initialIsLiked?: boolean;
|
||||
@@ -24,6 +26,8 @@ const ContentCardSocialActions: React.FC<ContentCardSocialActionsProps> = ({
|
||||
contentType = 'video',
|
||||
storeName,
|
||||
region,
|
||||
title,
|
||||
description,
|
||||
commentCount,
|
||||
initialLikeCount,
|
||||
initialIsLiked = false,
|
||||
@@ -36,8 +40,8 @@ const ContentCardSocialActions: React.FC<ContentCardSocialActionsProps> = ({
|
||||
const likeDebounceRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
|
||||
const shareUrl = buildContentShareUrl(API_URL, videoId, contentType);
|
||||
const shareTitle = storeName || t('videoDetail.kakaoDefaultTitle');
|
||||
const shareDescription = t('videoDetail.kakaoDescription', { region: region ?? '' });
|
||||
const shareTitle = title || storeName || t('videoDetail.kakaoDefaultTitle');
|
||||
const shareDescription = description || t('videoDetail.kakaoDescription', { region: region ?? '' });
|
||||
|
||||
const handleShareBtnClick = async (e: React.MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in new issue
Block a user