diff --git a/src/pages/FeedDetail/components/Comment.tsx b/src/pages/FeedDetail/components/Comment.tsx index ceae0c6d..c1de6765 100644 --- a/src/pages/FeedDetail/components/Comment.tsx +++ b/src/pages/FeedDetail/components/Comment.tsx @@ -93,6 +93,7 @@ const Comment = ({ nickname={nickname} skillList={memberSkills} createdAt={createdAt} + owner={owner} /> {!deleted && } diff --git a/src/pages/FeedDetail/components/CommentProfileInfo.tsx b/src/pages/FeedDetail/components/CommentProfileInfo.tsx index 4aa87a83..be230507 100644 --- a/src/pages/FeedDetail/components/CommentProfileInfo.tsx +++ b/src/pages/FeedDetail/components/CommentProfileInfo.tsx @@ -11,20 +11,21 @@ interface Props { nickname: string; skillList: string[]; createdAt: string; + owner: boolean; } -const CommentProfileInfo = ({ memberId, imageUrl, nickname, skillList, createdAt }: Props) => { +const CommentProfileInfo = ({ memberId, imageUrl, nickname, skillList, createdAt, owner }: Props) => { const { goProfilePage } = useNavigatePage(); + + const onClickProfileImage = () => { + if (owner) return; + + goProfilePage(memberId); + }; + return ( - - goProfilePage(memberId)} - cursor="pointer" - > + + diff --git a/src/pages/FeedDetail/components/Recomment.tsx b/src/pages/FeedDetail/components/Recomment.tsx index 15a9b6cb..f11fb795 100644 --- a/src/pages/FeedDetail/components/Recomment.tsx +++ b/src/pages/FeedDetail/components/Recomment.tsx @@ -80,6 +80,7 @@ const Recomment = ({ nickname={nickname} skillList={memberSkills} createdAt={createdAt} + owner={owner} />