mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
createaccount: ui: add login prompt view struct
This commit is contained in:
parent
ba7f675300
commit
9a9fb28a48
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user