mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
remove onDismiss
This commit is contained in:
@@ -36,11 +36,7 @@ struct NewChatMenuButton: View {
|
||||
.scaledToFit()
|
||||
.frame(width: 24, height: 24)
|
||||
}
|
||||
.sheet(item: $newChatMenuOption, onDismiss: {
|
||||
if case .newContact = newChatMenuOption {
|
||||
|
||||
}
|
||||
}) { opt in
|
||||
.sheet(item: $newChatMenuOption) { opt in
|
||||
switch opt {
|
||||
case .newContact: NewChatView(selection: .invite)
|
||||
case .newGroup: AddGroupView()
|
||||
|
||||
Reference in New Issue
Block a user