From 82a05e9b6de3dd297b3736dcc348697360cf641f Mon Sep 17 00:00:00 2001 From: fmodf Date: Wed, 7 Aug 2024 12:03:58 +0200 Subject: [PATCH] wip --- ConversationsClassic/AppCore/State/AppState.swift | 1 - ConversationsClassic/View/BaseNavigationView.swift | 3 --- ConversationsClassic/View/Screens/ChatsListScreen.swift | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ConversationsClassic/AppCore/State/AppState.swift b/ConversationsClassic/AppCore/State/AppState.swift index ff00206..56f589f 100644 --- a/ConversationsClassic/AppCore/State/AppState.swift +++ b/ConversationsClassic/AppCore/State/AppState.swift @@ -7,7 +7,6 @@ enum AppFlow: Codable { case contacts case settings case conversation - case createConversation } struct AppState: Stateable { diff --git a/ConversationsClassic/View/BaseNavigationView.swift b/ConversationsClassic/View/BaseNavigationView.swift index 9df484b..558b471 100644 --- a/ConversationsClassic/View/BaseNavigationView.swift +++ b/ConversationsClassic/View/BaseNavigationView.swift @@ -33,9 +33,6 @@ struct BaseNavigationView: View { case .conversation: ConversationScreen() - - case .createConversation: - CreateConversationMainScreen() } } } diff --git a/ConversationsClassic/View/Screens/ChatsListScreen.swift b/ConversationsClassic/View/Screens/ChatsListScreen.swift index ba19103..06d3870 100644 --- a/ConversationsClassic/View/Screens/ChatsListScreen.swift +++ b/ConversationsClassic/View/Screens/ChatsListScreen.swift @@ -17,7 +17,7 @@ struct ChatsListScreen: View { rightButton: .init( image: Image(systemName: "square.and.pencil"), action: { - store.dispatch(.changeFlow(.createConversation)) + print("Create chat") } ) )