Add Monero subaccounts and subaddresses with a QR per address
This commit is contained in:
@@ -7,6 +7,7 @@ enum Route: Equatable {
|
||||
case dashboard
|
||||
case send
|
||||
case receive
|
||||
case accounts
|
||||
}
|
||||
|
||||
struct SeedBox: Identifiable {
|
||||
@@ -18,7 +19,8 @@ struct SeedBox: Identifiable {
|
||||
struct RootView: View {
|
||||
@EnvironmentObject private var model: AppModel
|
||||
@Environment(\.scenePhase) private var scenePhase
|
||||
@State private var route: Route = .home
|
||||
@State private var route: Route = ProcessInfo.processInfo.arguments.contains("-koinsScreenAccounts")
|
||||
? .accounts : .home
|
||||
@State private var seedBox: SeedBox?
|
||||
|
||||
var body: some View {
|
||||
@@ -39,6 +41,8 @@ struct RootView: View {
|
||||
SendView(route: $route)
|
||||
case .receive:
|
||||
ReceiveView(route: $route)
|
||||
case .accounts:
|
||||
AccountsView(route: $route)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 20)
|
||||
@@ -159,8 +163,11 @@ struct HomeView: View {
|
||||
}
|
||||
|
||||
if model.chain == .xmr {
|
||||
SecondaryButton(title: model.syncStatus?.syncing == true ? "Syncing…" : "Sync now") {
|
||||
Task { await model.startMoneroSync() }
|
||||
HStack(spacing: 10) {
|
||||
SecondaryButton(title: model.syncStatus?.syncing == true ? "Syncing…" : "Sync now") {
|
||||
Task { await model.startMoneroSync() }
|
||||
}
|
||||
SecondaryButton(title: "Addresses") { route = .accounts }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user