콘텐츠 답글 - 댓글이 랜덤으로 보이는 버그 수정

This commit is contained in:
Yu Sung
2023-09-13 16:54:24 +09:00
parent 3bcd2b7dba
commit 48b1093dac
3 changed files with 15 additions and 26 deletions

View File

@@ -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
}
}