mirror of
git://jb55.com/damus
synced 2024-09-16 10:13:45 +00:00
fix: relay filter button fix
Closes: https://github.com/damus-io/damus/pull/1678 Tested-by: William Casarin <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
6863e74c0f
commit
2895c374c0
@ -264,16 +264,13 @@ struct ContentView: View {
|
|||||||
|
|
||||||
// maybe expand this to other timelines in the future
|
// maybe expand this to other timelines in the future
|
||||||
if selected_timeline == .search {
|
if selected_timeline == .search {
|
||||||
|
|
||||||
Button(action: {
|
Button(action: {
|
||||||
//isFilterVisible.toggle()
|
|
||||||
present_sheet(.filter)
|
present_sheet(.filter)
|
||||||
}) {
|
}, label: {
|
||||||
// checklist, checklist.checked, lisdt.bullet, list.bullet.circle, line.3.horizontal.decrease..., line.3.horizontail.decrease
|
Image("filter")
|
||||||
Label(NSLocalizedString("Filter", comment: "Button label text for filtering relay servers."), image: "filter")
|
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
//.contentShape(Rectangle())
|
})
|
||||||
}
|
|
||||||
.buttonStyle(.plain)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -326,13 +323,9 @@ struct ContentView: View {
|
|||||||
SelectWalletView(default_wallet: damus_state!.settings.default_wallet, active_sheet: $active_sheet, our_pubkey: damus_state!.pubkey, invoice: select.invoice)
|
SelectWalletView(default_wallet: damus_state!.settings.default_wallet, active_sheet: $active_sheet, our_pubkey: damus_state!.pubkey, invoice: select.invoice)
|
||||||
case .filter:
|
case .filter:
|
||||||
let timeline = selected_timeline
|
let timeline = selected_timeline
|
||||||
if #available(iOS 16.0, *) {
|
|
||||||
RelayFilterView(state: damus_state!, timeline: timeline)
|
RelayFilterView(state: damus_state!, timeline: timeline)
|
||||||
.presentationDetents([.height(550)])
|
.presentationDetents([.height(550)])
|
||||||
.presentationDragIndicator(.visible)
|
.presentationDragIndicator(.visible)
|
||||||
} else {
|
|
||||||
RelayFilterView(state: damus_state!, timeline: timeline)
|
|
||||||
}
|
|
||||||
case .onboardingSuggestions:
|
case .onboardingSuggestions:
|
||||||
OnboardingSuggestionsView(model: SuggestedUsersViewModel(damus_state: damus_state!))
|
OnboardingSuggestionsView(model: SuggestedUsersViewModel(damus_state: damus_state!))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user