extract HomeModel from ContentView
huge refactor Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user