From 7250cf0d8fb5f30ff4f6541d57f053e65fb55cc9 Mon Sep 17 00:00:00 2001 From: ericholguin Date: Fri, 26 May 2023 15:59:20 -0600 Subject: [PATCH] loginview: add sign in entry view struct --- damus/Views/LoginView.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/damus/Views/LoginView.swift b/damus/Views/LoginView.swift index c72cf0db..fd44dd04 100644 --- a/damus/Views/LoginView.swift +++ b/damus/Views/LoginView.swift @@ -331,6 +331,20 @@ struct SignInHeader: View { } } +struct SignInEntry: View { + let key: Binding + + var body: some View { + VStack(alignment: .leading) { + Text("Enter your account key", comment: "Prompt for user to enter an account key to login.") + .fontWeight(.medium) + .padding(.top, 30) + + 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) + } + } +} + } } }