커뮤니티 댓글, 팬토크, 콘텐츠 댓글
- 프로필 이미지 터치시 차단, 신고가 가능한 유저 프로필 표시
This commit is contained in:
@@ -12,6 +12,9 @@ struct UserProfileView: View {
|
||||
let userId: Int
|
||||
@StateObject var viewModel = UserProfileViewModel()
|
||||
|
||||
@State private var memberId: Int = 0
|
||||
@State private var isShowMemberProfilePopup: Bool = false
|
||||
|
||||
var body: some View {
|
||||
GeometryReader { proxy in
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
@@ -196,6 +199,10 @@ struct UserProfileView: View {
|
||||
viewModel.cheersId = cheerId
|
||||
viewModel.isShowCheersDeleteView = true
|
||||
},
|
||||
profilePopup: {
|
||||
self.memberId = $0
|
||||
self.isShowMemberProfilePopup = true
|
||||
},
|
||||
isLoading: $viewModel.isLoading
|
||||
)
|
||||
.padding(.top, 26.7)
|
||||
@@ -311,6 +318,10 @@ struct UserProfileView: View {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
if isShowMemberProfilePopup {
|
||||
MemberProfileDialog(isShowing: $isShowMemberProfilePopup, memberId: memberId)
|
||||
}
|
||||
}
|
||||
}
|
||||
.sheet(
|
||||
|
Reference in New Issue
Block a user