From b574600f9a429aeb7c34a3e18ceee7fc58c8dbbc Mon Sep 17 00:00:00 2001 From: Shim MunSeong Date: Mon, 2 Dec 2024 21:40:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20navigator.share=EB=A1=9C=20=EC=9D=BC?= =?UTF-8?q?=EB=B0=98=20=ED=85=8D=EC=8A=A4=ED=8A=B8=EB=A7=8C=20=EA=B3=B5?= =?UTF-8?q?=EC=9C=A0=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/preview/src/pages/ShowPreviewPage/index.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/preview/src/pages/ShowPreviewPage/index.tsx b/apps/preview/src/pages/ShowPreviewPage/index.tsx index 72d5b7f1..b9d069be 100644 --- a/apps/preview/src/pages/ShowPreviewPage/index.tsx +++ b/apps/preview/src/pages/ShowPreviewPage/index.tsx @@ -20,16 +20,14 @@ const getPreviewLink = (showId: number) => { } const getShareText = (show: { id: number, title: string, date: Date, placeName: string, streetAddress: string, detailAddress: string }) => { - return ` -공연 정보를 공유드려요! + return `공연 정보를 공유드려요! - 공연명 : ${show.title} - 일시 : ${format(show.date, 'yyyy.MM.dd (E) / HH:mm -', { locale: ko })} - 장소 : ${show.placeName} / ${show.streetAddress}, ${show.detailAddress} 공연 상세 정보 ▼ -${getPreviewLink(show.id)} - ` +${getPreviewLink(show.id)}` } const ShowPreviewPage = () => { @@ -64,9 +62,7 @@ const ShowPreviewPage = () => { const shareButtonClickHandler = async () => { if (navigator.share) { await navigator.share({ - title, text: getShareText({ id, title, date: new Date(date), placeName, streetAddress, detailAddress }), - url: getPreviewLink(id), }); } else { await navigator.clipboard.writeText(getPreviewLink(id));