diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift index 59b7af00..e6962699 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift @@ -18,6 +18,7 @@ struct CreatorCommunityCommentItemView: View { let modifyComment: (Int, String) -> Void let onClickDelete: (Int) -> Void let onClickProfile: (Int) -> Void + let onTapReplyDetail: () -> Void @State var isShowPopupMenu: Bool = false @State var isModeModify: Bool = false @@ -110,19 +111,19 @@ struct CreatorCommunityCommentItemView: View { .fixedSize(horizontal: false, vertical: true) .lineSpacing(8) .padding(.top, 13.3) + .frame(maxWidth: .infinity, alignment: .leading) + .contentShape(Rectangle()) + .onTapGesture { + if isReplyComment == false { + onTapReplyDetail() + } + } if !isReplyComment { - NavigationLink( - destination: CreatorCommunityCommentReplyView( - creatorId: creatorId, - postId: postId, - parentComment: commentItem - ) - ) { - Text(commentItem.replyCount > 0 ? I18n.Explorer.replyCount(commentItem.replyCount) : I18n.Explorer.replyWrite) - .appFont(size: 13.3, weight: .medium) - .foregroundColor(Color.button) - } + Text(commentItem.replyCount > 0 ? I18n.Explorer.replyCount(commentItem.replyCount) : I18n.Explorer.replyWrite) + .appFont(size: 13.3, weight: .medium) + .foregroundColor(Color.button) + .onTapGesture(perform: onTapReplyDetail) } } } diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift index 6e5e66d3..003c4149 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift @@ -145,6 +145,20 @@ struct CreatorCommunityCommentListView: View { onClickProfile: { memberId = $0 isShowMemberProfilePopup = true + }, + onTapReplyDetail: { + isPresented = false + DispatchQueue.main.async { + AppState.shared.setAppStep( + step: .creatorChannelReplyDetail( + context: .community( + creatorId: creatorId, + postId: postId, + parentComment: comment + ) + ) + ) + } } ) .padding(.horizontal, 26.7) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift index f527e2ce..2a561bb4 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift @@ -105,7 +105,8 @@ struct CreatorCommunityCommentReplyView: View { onClickProfile: { memberId = $0 isShowMemberProfilePopup = true - } + }, + onTapReplyDetail: {} ) .padding(.horizontal, 26.7) .padding(.bottom, 13.3) @@ -131,7 +132,8 @@ struct CreatorCommunityCommentReplyView: View { onClickProfile: { memberId = $0 isShowMemberProfilePopup = true - } + }, + onTapReplyDetail: {} ) .padding(.horizontal, 26.7) .padding(.leading, 13.3)