diff --git a/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentItemView.swift b/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentItemView.swift index 75d9dde..3584e7e 100644 --- a/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentItemView.swift +++ b/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentItemView.swift @@ -9,10 +9,8 @@ import SwiftUI import Kingfisher struct AudioContentCommentItemView: View { - - @Binding var isDisabledNavigationLink: Bool - let contentCreatorId: Int + let audioContentId: Int let commentItem: GetAudioContentCommentListItem let isReplyComment: Bool let isShowPopupMenuButton: Bool @@ -120,9 +118,17 @@ struct AudioContentCommentItemView: View { .padding(.top, commentItem.donationCan > 0 ? 0 : 13.3) if !isReplyComment { - Text(commentItem.replyCount > 0 ? "답글 \(commentItem.replyCount)개" : "답글 쓰기") - .font(.custom(Font.medium.rawValue, size: 13.3)) - .foregroundColor(Color(hex: "9970ff")) + NavigationLink( + destination: AudioContentListReplyView( + creatorId: contentCreatorId, + audioContentId: audioContentId, + parentComment: commentItem + ) + ) { + Text(commentItem.replyCount > 0 ? "답글 \(commentItem.replyCount)개" : "답글 쓰기") + .font(.custom(Font.medium.rawValue, size: 13.3)) + .foregroundColor(Color(hex: "9970ff")) + } } } } @@ -145,7 +151,6 @@ struct AudioContentCommentItemView: View { .foregroundColor(Color(hex: "777777")) .onTapGesture { isModeModify = true - isDisabledNavigationLink = true isShowPopupMenu = false } } diff --git a/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentListView.swift b/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentListView.swift index a7c9463..afdfda8 100644 --- a/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentListView.swift +++ b/SodaLive/Sources/Content/Detail/Comment/AudioContentCommentListView.swift @@ -19,8 +19,6 @@ struct AudioContentCommentListView: View { @State private var commentId: Int = 0 @State private var isShowDeletePopup: Bool = false - @State private var isDisabledNavigationLink: Bool = false - @State private var isShowReplyView: Bool = false var body: some View { NavigationView { @@ -105,18 +103,9 @@ struct AudioContentCommentListView: View { ForEach(0..