loginview: ui: replace existing views with new sign in header and entry views

This commit is contained in:
ericholguin
2023-05-26 16:05:56 -06:00
committed by William Casarin
parent 10fec3cbf8
commit 46556c8bdc

View File

@@ -62,16 +62,10 @@ struct LoginView: View {
} }
VStack { VStack {
Text("Login", comment: "Title of view to log into an account.") SignInHeader()
.foregroundColor(.white) .padding(.top, 100)
.font(.title)
.padding()
Text("Enter your account key to login:", comment: "Prompt for user to enter an account key to login.") SignInEntry(key: $key)
.foregroundColor(.white)
.padding()
KeyInput(NSLocalizedString("nsec1...", comment: "Prompt for user to enter in an account key to login. This text shows the characters the key could start with if it was a private key."), key: $key)
let parsed = parse_key(key) let parsed = parse_key(key)