Search page (#1912)

* Desktop web work

* Mobile search

* Dedupe suggestions

* Clean up and reorg

* Cleanup

* Cleanup

* Use Pager

* Delete unused code

* Fix conflicts

* Remove search ui model

* Soft reset

* Fix scrollable results, remove observer

* Use correct ScrollView

* Clean up layout

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
This commit is contained in:
Eric Bailey 2023-11-15 17:55:28 -06:00 committed by GitHub
parent d5ea31920c
commit 22b76423a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 742 additions and 991 deletions

View file

@ -36,7 +36,7 @@ export function useActorAutocompleteFn() {
const {data: follows} = useMyFollowsQuery()
return React.useCallback(
async ({query}: {query: string}) => {
async ({query, limit = 8}: {query: string; limit?: number}) => {
let res
if (query) {
try {
@ -47,7 +47,7 @@ export function useActorAutocompleteFn() {
queryFn: () =>
agent.searchActorsTypeahead({
term: query,
limit: 8,
limit,
}),
})
} catch (e) {