mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add descriptive text to login view
This commit is contained in:
parent
1dd0787c26
commit
e736ebbb8c
@ -9,6 +9,9 @@ struct AccountLoginView: View {
|
||||
@State private var server: String = ""
|
||||
var body: some View {
|
||||
VStack {
|
||||
Text("Log in to publish and share your posts.")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
HStack {
|
||||
Image(systemName: "person.circle")
|
||||
.foregroundColor(.gray)
|
||||
@ -57,7 +60,7 @@ struct AccountLoginView: View {
|
||||
as: username, password: password
|
||||
)
|
||||
}, label: {
|
||||
Text("Login")
|
||||
Text("Log In")
|
||||
})
|
||||
.disabled(
|
||||
model.account.isLoggedIn || (username.isEmpty || password.isEmpty || server.isEmpty)
|
||||
|
@ -12,7 +12,7 @@ struct AccountLogoutView: View {
|
||||
}
|
||||
Spacer()
|
||||
Button(action: logoutHandler, label: {
|
||||
Text("Logout")
|
||||
Text("Log Out")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ struct AccountView: View {
|
||||
.padding()
|
||||
} else {
|
||||
AccountLoginView()
|
||||
.padding()
|
||||
.padding(.top)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user