feat(creator): 팬Talk 답글 상세를 연결한다
This commit is contained in:
@@ -6,6 +6,7 @@ struct CreatorChannelFanTalkTabView: View {
|
||||
@ObservedObject var viewModel: CreatorChannelFanTalkViewModel
|
||||
let onTapWrite: () -> Void
|
||||
let onTapEdit: (CreatorChannelFanTalkItemResponse) -> Void
|
||||
let onTapDetail: (CreatorChannelFanTalkItemResponse) -> Void
|
||||
|
||||
@State private var actionPopupFanTalk: CreatorChannelFanTalkItemResponse?
|
||||
@State private var fanTalkItemFrames = [Int: CGRect]()
|
||||
@@ -76,6 +77,11 @@ struct CreatorChannelFanTalkTabView: View {
|
||||
},
|
||||
onTapMore: {
|
||||
actionPopupFanTalk = actionPopupFanTalk?.fanTalkId == fanTalk.fanTalkId ? nil : fanTalk
|
||||
},
|
||||
onTapDetail: {
|
||||
guard isOwnCreatorChannel else { return }
|
||||
actionPopupFanTalk = nil
|
||||
onTapDetail(fanTalk)
|
||||
}
|
||||
)
|
||||
.background {
|
||||
|
||||
Reference in New Issue
Block a user