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:
austinried
2022-04-16 18:06:06 +09:00
parent a0b96223d9
commit cd15d159b6
14 changed files with 120 additions and 79 deletions
+2 -2
View File
@@ -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
}, [])