라이브 상세 페이지 추가
This commit is contained in:
@@ -12,7 +12,7 @@ struct LiveRoomPasswordDialog: View {
|
||||
@Binding var isShowing: Bool
|
||||
|
||||
let can: Int
|
||||
let confirmAction: (Int) -> Void
|
||||
let confirmAction: (String) -> Void
|
||||
|
||||
@State private var password = ""
|
||||
@StateObject var keyboardHandler = KeyboardHandler()
|
||||
@@ -81,9 +81,9 @@ struct LiveRoomPasswordDialog: View {
|
||||
.cornerRadius(8)
|
||||
.onTapGesture {
|
||||
if password.trimmingCharacters(in: .whitespaces).isEmpty {
|
||||
confirmAction(0)
|
||||
confirmAction("")
|
||||
} else {
|
||||
confirmAction(Int(password)!)
|
||||
confirmAction(password)
|
||||
}
|
||||
isShowing = false
|
||||
}
|
||||
@@ -97,9 +97,9 @@ struct LiveRoomPasswordDialog: View {
|
||||
.cornerRadius(8)
|
||||
.onTapGesture {
|
||||
if password.trimmingCharacters(in: .whitespaces).isEmpty {
|
||||
confirmAction(0)
|
||||
confirmAction("")
|
||||
} else {
|
||||
confirmAction(Int(password)!)
|
||||
confirmAction(password)
|
||||
}
|
||||
isShowing = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user