Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small screen devices issues #83

Merged
merged 15 commits into from
Mar 27, 2023
Prev Previous commit
Next Next commit
Improve Grammar
  • Loading branch information
cedricbahirwe committed Mar 26, 2023
commit 8967ed9aa9e09beb5dc70133f3e98dfe2901357e
14 changes: 5 additions & 9 deletions Dialer/Dialer/Views/Main/MySpaceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ struct MySpaceView: View {
Label("Add USSD Code", systemImage: "plus")
}

EditButton()
if !store.ussdCodes.isEmpty {
EditButton()
}
}
}
.onAppear() {
Expand Down Expand Up @@ -126,14 +128,7 @@ extension MySpaceView: UtilitiesDelegate {
}
}

//private extension MySpaceView {
// enum USSDFilterOption {
// case system
// case custom
// case all
// }
//}

#if DEBUG
struct MySpaceView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
Expand All @@ -143,3 +138,4 @@ struct MySpaceView_Previews: PreviewProvider {
}
}
}
#endif
3 changes: 2 additions & 1 deletion Dialer/Dialer/Views/NewDialingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ struct NewDialingView: View {
Text(LocalizedStringKey(alertItem.message))
})
.padding()
.navigationTitle("\(isEditing ? "Edit" : "Save") your own code")
.navigationTitle("\(isEditing ? "Edit" : "Create") your own USSD code")
.navigationBarTitleDisplayMode(.inline)
.background(Color.primaryBackground.ignoresSafeArea().onTapGesture(perform: hideKeyboard))
.onSubmit(manageKeyboardFocus)
.onAppear() {
Expand Down
2 changes: 1 addition & 1 deletion Dialer/Dialer/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"This USSD code is already saved under another name" = "Ce code USSD est déjà enregistré sous un autre nom";
"Save USSD" = "Sauvegarder le code USSD";
"USSD Validation" = "Validation USSD";
"Save your own code" = "Ajouter votre code";
"Create your own USSD code" = "Créer votre propre code USSD";

"USSD code is empty." = "Le code USSD est vide.";
"USSD title is Empty." = "Le titre USSD est vide.";
Expand Down
2 changes: 1 addition & 1 deletion Dialer/Dialer/rw.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"This USSD code is already saved under another name" = "Iyi code ya USSD yamaze kubikwa ku rindi zina.";
"Save USSD" = "Bika USSD";
"USSD Validation" = "Kwemeza USSD";
"Save your own code" = "Bika kode yawe bwite";
"Create your own USSD code" = "Kora kode yawe ya USSD";

"USSD code is empty." = "Kode ya USSD irimo ubusa.";
"USSD title is Empty." = "Umutwe wa USSD ni ubusa.";
Expand Down