1
0
mirror of git://jb55.com/damus synced 2024-10-06 03:33:22 +00:00

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,19 +62,13 @@ struct LoginView: View {
}
VStack {
Text("Login", comment: "Title of view to log into an account.")
.foregroundColor(.white)
.font(.title)
.padding()
Text("Enter your account key to login:", comment: "Prompt for user to enter an account key to login.")
.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)
SignInHeader()
.padding(.top, 100)
SignInEntry(key: $key)
let parsed = parse_key(key)
if parsed?.is_hex ?? false {
Text("This is an old-style nostr key. We're not sure if it's a pubkey or private key. Please toggle the button below if this a public key.", comment: "Warning that the inputted account key for login is an old-style and asking user to verify if it is a public key.")
.font(.subheadline.bold())