loginview: add create account prompt view struct
This commit is contained in:
committed by
William Casarin
parent
7250cf0d8f
commit
10fec3cbf8
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user