From 47ec1d6a2b67602c47d7059458cdbc56d8e1af00 Mon Sep 17 00:00:00 2001 From: imddoy Date: Fri, 24 Jan 2025 16:20:54 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=B6=80=EB=AA=A8=20=ED=81=B4=EB=A6=AD?= =?UTF-8?q?=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=A0=84=ED=8C=8C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../myPage/components/postCard/PostCard.tsx | 18 +++++++++++++++++- .../myPage/components/toolCard/MyToolCard.tsx | 7 ++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/pages/myPage/components/postCard/PostCard.tsx b/src/pages/myPage/components/postCard/PostCard.tsx index efb8393f..0d03e20a 100644 --- a/src/pages/myPage/components/postCard/PostCard.tsx +++ b/src/pages/myPage/components/postCard/PostCard.tsx @@ -27,7 +27,23 @@ const PostCard = ({ boardId, isMine, title, updatedAt, toolLogo, toolName, onCli {title} {updatedAt} - {isMine ? : } + {isMine ? ( + + ) : ( + { + event.stopPropagation(); + onClick?.(); + }} + /> + )} ); diff --git a/src/pages/myPage/components/toolCard/MyToolCard.tsx b/src/pages/myPage/components/toolCard/MyToolCard.tsx index 3f20f883..1ef99bc4 100644 --- a/src/pages/myPage/components/toolCard/MyToolCard.tsx +++ b/src/pages/myPage/components/toolCard/MyToolCard.tsx @@ -29,7 +29,12 @@ const MyToolCard = ({ toolId, toolLogo, toolNameMain, keyWordList, onClick }: My ))} - + { + event.stopPropagation(); + onClick?.(); + }} + /> ); };