mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
don't use i18n namespaces
there's no need to keep reloading different parts of the object we already cached
This commit is contained in:
@@ -59,7 +59,7 @@ const SearchResultsView = withSuspense<{
|
||||
type: 'album' | 'artist' | 'song'
|
||||
}>(({ query, type }) => {
|
||||
const navigation = useNavigation()
|
||||
const { t } = useTranslation('search')
|
||||
const { t } = useTranslation()
|
||||
|
||||
const size = 100
|
||||
const params: Search3Params = { query }
|
||||
@@ -85,7 +85,7 @@ const SearchResultsView = withSuspense<{
|
||||
|
||||
useEffect(() => {
|
||||
navigation.setOptions({
|
||||
title: t('headerTitle', { query }),
|
||||
title: t('search.headerTitle', { query }),
|
||||
})
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user