extract HomeModel from ContentView

huge refactor

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-24 12:57:40 -07:00
parent b230d430ee
commit 097cc54bba
27 changed files with 1221 additions and 371 deletions

View File

@@ -26,7 +26,7 @@ struct MainView: View {
var body: some View {
Group {
if let kp = keypair, !needs_setup {
ContentView(pubkey: kp.pubkey, privkey: kp.privkey)
ContentView(keypair: kp)
} else {
SetupView()
.onReceive(handle_notify(.login)) { notif in