mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
ios: fix translations on user profile page (#1134)
This commit is contained in:
committed by
GitHub
parent
1a2efc3b4f
commit
090e54c8d8
@@ -114,7 +114,7 @@ struct UserProfile: View {
|
||||
}
|
||||
}
|
||||
|
||||
func profileNameTextEdit(_ label: String, _ name: Binding<String>) -> some View {
|
||||
func profileNameTextEdit(_ label: LocalizedStringKey, _ name: Binding<String>) -> some View {
|
||||
TextField(label, text: name)
|
||||
.textInputAutocapitalization(.never)
|
||||
.disableAutocorrection(true)
|
||||
@@ -122,7 +122,7 @@ struct UserProfile: View {
|
||||
.padding(.leading, 28)
|
||||
}
|
||||
|
||||
func profileNameView(_ label: String, _ name: String) -> some View {
|
||||
func profileNameView(_ label: LocalizedStringKey, _ name: String) -> some View {
|
||||
HStack {
|
||||
Text(label)
|
||||
Text(name).fontWeight(.bold)
|
||||
|
||||
Reference in New Issue
Block a user