Skip to content

Commit

Permalink
fix: relay filter button fix
Browse files Browse the repository at this point in the history
Closes: #1678
Tested-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
  • Loading branch information
ericholguin authored and jb55 committed Nov 2, 2023
1 parent 6863e74 commit 2895c37
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions damus/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,13 @@ struct ContentView: View {

// maybe expand this to other timelines in the future
if selected_timeline == .search {

Button(action: {
//isFilterVisible.toggle()
present_sheet(.filter)
}) {
// checklist, checklist.checked, lisdt.bullet, list.bullet.circle, line.3.horizontal.decrease..., line.3.horizontail.decrease
Label(NSLocalizedString("Filter", comment: "Button label text for filtering relay servers."), image: "filter")
}, label: {
Image("filter")
.foregroundColor(.gray)
//.contentShape(Rectangle())
}
.buttonStyle(.plain)
})
}
}
}
Expand Down Expand Up @@ -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)
case .filter:
let timeline = selected_timeline
if #available(iOS 16.0, *) {
RelayFilterView(state: damus_state!, timeline: timeline)
.presentationDetents([.height(550)])
.presentationDragIndicator(.visible)
} else {
RelayFilterView(state: damus_state!, timeline: timeline)
}
RelayFilterView(state: damus_state!, timeline: timeline)
.presentationDetents([.height(550)])
.presentationDragIndicator(.visible)
case .onboardingSuggestions:
OnboardingSuggestionsView(model: SuggestedUsersViewModel(damus_state: damus_state!))
}
Expand Down

0 comments on commit 2895c37

Please sign in to comment.