Compare commits

...

1 Commits

Author SHA1 Message Date
Nick Klockenga
3f27de4178
derivation path input field is read only 2026-04-13 22:48:33 -04:00
2 changed files with 4 additions and 6 deletions

View File

@ -687,10 +687,9 @@ private struct EditCosignersView: View {
Text("Derivation Path")
.font(.hbLabel())
.foregroundStyle(Color.hbTextSecondary)
TextField("m/48'/1'/0'/2'", text: $editableCosigners[index].derivationPath)
Text(editableCosigners[index].derivationPath.isEmpty ? "" : editableCosigners[index].derivationPath)
.font(.hbMono())
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
.frame(maxWidth: .infinity, alignment: .leading)
.padding(12)
.background(Color.hbSurfaceElevated)
.clipShape(RoundedRectangle(cornerRadius: 8))

View File

@ -66,10 +66,9 @@ struct CosignerImportView: View {
.font(.hbLabel())
.foregroundStyle(Color.hbTextSecondary)
TextField("m/48'/1'/0'/2'", text: $viewModel.cosignerDerivationPaths[viewModel.currentCosignerIndex])
Text(viewModel.cosignerDerivationPaths[viewModel.currentCosignerIndex].isEmpty ? "" : viewModel.cosignerDerivationPaths[viewModel.currentCosignerIndex])
.font(.hbMono())
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
.frame(maxWidth: .infinity, alignment: .leading)
.padding(12)
.background(Color.hbSurfaceElevated)
.clipShape(RoundedRectangle(cornerRadius: 8))