Refactor and add legal links to payment pages, change contribute view's layout
This commit is contained in:
@@ -52,7 +52,7 @@ struct DictionaryView: View {
|
||||
})
|
||||
.buttonStyle(.bordered)
|
||||
}
|
||||
.padding([.top, .leading, .trailing], 8)
|
||||
.padding([.top, .leading, .trailing], 16)
|
||||
if advancedSearchEnabled == true {
|
||||
VStack {
|
||||
Text("Search for:")
|
||||
@@ -88,7 +88,7 @@ struct DictionaryView: View {
|
||||
.sheet(isPresented: $showGenericLegend, content: {
|
||||
PartsOfSpeechView(selectedPartOfSpeech: nil)
|
||||
})
|
||||
.onChange(of: tokiInput) { newValue in
|
||||
.onChange(of: tokiInput) {
|
||||
filterByInput()
|
||||
//tokiDictViewModel.filterDictionaryEnglishMode(newValue)
|
||||
}
|
||||
|
@@ -31,8 +31,8 @@ struct TranslatorView: View {
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
}
|
||||
.padding([.top, .leading, .trailing], 8)
|
||||
|
||||
.padding([.top, .leading, .trailing], 16)
|
||||
|
||||
if tokiInput.count == 0 {
|
||||
List(tokiDictViewModel.dictionary, id: \.word) { entry in
|
||||
TokiWordsListEntryView(entry: entry, selectedPartOfSpeech: $selectedPartOfSpeech)
|
||||
@@ -52,8 +52,8 @@ struct TranslatorView: View {
|
||||
.sheet(item: $selectedPartOfSpeech) { selectedPOS in
|
||||
PartsOfSpeechView(selectedPartOfSpeech: selectedPOS)
|
||||
}
|
||||
.onChange(of: tokiInput) { newValue in
|
||||
tokiDictViewModel.translatePhrase(newValue)
|
||||
.onChange(of: tokiInput) {
|
||||
tokiDictViewModel.translatePhrase(tokiInput)
|
||||
}
|
||||
.onTapGesture {
|
||||
hideKeyboard()
|
||||
|
Reference in New Issue
Block a user