wip
This commit is contained in:
parent
c8fa4a85b9
commit
82a05e9b6d
|
@ -7,7 +7,6 @@ enum AppFlow: Codable {
|
||||||
case contacts
|
case contacts
|
||||||
case settings
|
case settings
|
||||||
case conversation
|
case conversation
|
||||||
case createConversation
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AppState: Stateable {
|
struct AppState: Stateable {
|
||||||
|
|
|
@ -33,9 +33,6 @@ struct BaseNavigationView: View {
|
||||||
|
|
||||||
case .conversation:
|
case .conversation:
|
||||||
ConversationScreen()
|
ConversationScreen()
|
||||||
|
|
||||||
case .createConversation:
|
|
||||||
CreateConversationMainScreen()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ struct ChatsListScreen: View {
|
||||||
rightButton: .init(
|
rightButton: .init(
|
||||||
image: Image(systemName: "square.and.pencil"),
|
image: Image(systemName: "square.and.pencil"),
|
||||||
action: {
|
action: {
|
||||||
store.dispatch(.changeFlow(.createConversation))
|
print("Create chat")
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue