채금 기능 추가

This commit is contained in:
Yu Sung
2023-10-11 19:25:12 +09:00
parent 91c43e679f
commit 282ee73de1
8 changed files with 309 additions and 26 deletions

View File

@@ -23,6 +23,7 @@ struct LiveRoomUserProfileDialogView: View {
let onClickInviteSpeaker: (Int) -> Void
let onClickChangeListener: (Int) -> Void
let onClickMenu: (Int, String, Bool) -> Void
let onClickNoChatting: (Int, String, String) -> Void
var body: some View {
ZStack {
@@ -210,6 +211,22 @@ struct LiveRoomUserProfileDialogView: View {
.fixedSize(horizontal: false, vertical: true)
.padding(.top, 21.3)
if let _ = userProfile.isManager {
Text("3분간 채팅금지")
.font(.custom(Font.bold.rawValue, size: 15))
.foregroundColor(Color(hex: "9970ff"))
.frame(maxWidth: .infinity)
.padding(.vertical, 13)
.cornerRadius(8)
.overlay(
RoundedRectangle(cornerRadius: 8)
.strokeBorder(lineWidth: 1)
.foregroundColor(Color(hex: "9970ff"))
)
.onTapGesture { onClickNoChatting(userProfile.userId, userProfile.nickname, userProfile.profileUrl) }
.padding(.top, 21.3)
}
Text(userProfile.tags)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "9970ff"))