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

createaccount: ui: add login prompt view struct

This commit is contained in:
ericholguin 2023-05-26 19:29:48 -06:00 committed by William Casarin
parent ba7f675300
commit 9a9fb28a48

View File

@ -105,6 +105,22 @@ struct CreateAccountView: View {
}
}
struct LoginPrompt: View {
@Environment(\.dismiss) var dismiss
var body: some View {
HStack {
Text("Already on nostr?", comment: "Ask the user if they already have an account on nostr")
.foregroundColor(Color("DamusMediumGrey"))
Button(NSLocalizedString("Login", comment: "Button to navigate to login view.")) {
self.dismiss()
}
Spacer()
}
}
}
struct BackNav: View {
@Environment(\.dismiss) var dismiss