mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-23 19:39:35 -05:00
optimize search a bit
This commit is contained in:
@@ -13,7 +13,7 @@ import HorizontalCardList from '../Global/components/horizontal-list'
|
||||
import ItemCard from '../Global/components/item-card'
|
||||
import SearchParamList from '../../screens/Search/types'
|
||||
import { closeAllSwipeableRows } from '../Global/components/swipeable-row-registry'
|
||||
import { useApi, useJellifyLibrary, useJellifyUser } from '../../stores'
|
||||
import { getApi, getUser, useJellifyLibrary } from '../../stores'
|
||||
import { useSearchSuggestions } from '../../api/queries/suggestions'
|
||||
import { FlashList } from '@shopify/flash-list'
|
||||
import navigationRef from '../../../navigation'
|
||||
@@ -24,8 +24,8 @@ export default function Search({
|
||||
}: {
|
||||
navigation: NativeStackNavigationProp<SearchParamList, 'SearchScreen'>
|
||||
}): React.JSX.Element {
|
||||
const api = useApi()
|
||||
const [user] = useJellifyUser()
|
||||
const api = getApi()
|
||||
const user = getUser()
|
||||
const [library] = useJellifyLibrary()
|
||||
|
||||
const [searchString, setSearchString] = useState<string | undefined>(undefined)
|
||||
|
||||
Reference in New Issue
Block a user