From 4ebf1cd8944a8ef2073b3141ee2356b0767ff613 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 7 Oct 2026 17:30:43 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=EA=B3=B5=EC=9C=A0=EB=8A=94?= =?UTF-8?q?=20=EB=82=A0=EC=94=A8=EA=B0=81=20=EB=A7=81=ED=81=AC=EB=A7=8C=20?= =?UTF-8?q?=EB=B3=B4=EB=82=B4=EA=B8=B0=20(=ED=85=8D=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=C2=B7=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=97=86=EC=9D=B4)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c67121351b66157c72dd428ca9831bc4ba55e4b0. --- frontend/src/b/Post.tsx | 12 +- frontend/src/b/Sheets.tsx | 103 ++++++++++++++- frontend/src/b/WeekPage.tsx | 17 ++- frontend/src/b/shareLink.ts | 22 ---- frontend/src/b/sheetContext.ts | 3 + frontend/src/b/storyImage.ts | 229 +++++++++++++++++++++++++++++++++ frontend/src/b/ui.tsx | 23 +--- 7 files changed, 351 insertions(+), 58 deletions(-) delete mode 100644 frontend/src/b/shareLink.ts create mode 100644 frontend/src/b/storyImage.ts diff --git a/frontend/src/b/Post.tsx b/frontend/src/b/Post.tsx index 19e24a0..52926cf 100644 --- a/frontend/src/b/Post.tsx +++ b/frontend/src/b/Post.tsx @@ -11,8 +11,7 @@ import { useAuth } from './authContext' import { useSheet } from './sheetContext' import { CommentIcon, HeartIcon, SendIcon } from './svg' import { useCarousel } from './carousel' -import { shareLink } from './shareLink' -import { Arrows, Credit, Ic, Rows, ScreenNote, Skel, Thumb } from './ui' +import { Arrows, Credit, Ic, Rows, Skel, Thumb } from './ui' const ACCOUNTS: Record = { [PostType.WEATHER]: ['오늘 날씨', 'sun'], @@ -311,11 +310,11 @@ function FullCard({ post }: PostProps) { const [pop, setPop] = useState(0) const [likeFailed, setLikeFailed] = useState(0) const lastTap = useRef(0) + const trackRef = useRef(null) const [account, avatar] = ACCOUNTS[post.post_type] const n = post.slides.length const bgs = post.slides.map((sl) => slideBg(post, sl)) - const [note, setNote] = useState('') - const share = () => void shareLink().then((m) => m && setNote(m)) + const share = () => open({ type: 'share', share: { title: post.title, slides: Array.from(trackRef.current?.children ?? []).filter((c) => c instanceof HTMLElement) } }) const comments = () => open({ type: 'comments', postId: post.post_id }) const patch = (values: Partial) => patchFeed(queryClient, post.post_id, values) @@ -373,7 +372,7 @@ function FullCard({ post }: PostProps) {
{n > 1 && ( -