loginview: add create account prompt view struct

This commit is contained in:
ericholguin
2023-05-29 14:38:24 -07:00
committed by William Casarin
parent 7250cf0d8f
commit 10fec3cbf8
+11
View File
@@ -345,7 +345,18 @@ struct SignInEntry: View {
}
}
struct CreateAccountPrompt: View {
@Binding var create_account: Bool
var body: some View {
HStack {
Text("New to nostr?", comment: "Ask the user if they are new to nostr")
.foregroundColor(Color("DamusMediumGrey"))
Button(NSLocalizedString("Create account", comment: "Button to navigate to create account view.")) {
create_account.toggle()
}
Spacer()
}
}
}