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:
@@ -45,9 +45,9 @@ const AlbumItem = React.memo<{
|
||||
}, equal)
|
||||
|
||||
const CategoryHeader = withSuspenseMemo<{ type: string }>(({ type }) => {
|
||||
const { t } = useTranslation('resources.album.lists')
|
||||
console.log('type', type, t(type))
|
||||
return <Header style={styles.header}>{t(type)}</Header>
|
||||
const { t } = useTranslation()
|
||||
console.log('type', type, t(`resources.album.lists.${type}`))
|
||||
return <Header style={styles.header}>{t(`resources.album.lists.${type}`)}</Header>
|
||||
})
|
||||
|
||||
const Category = React.memo<{
|
||||
|
||||
Reference in New Issue
Block a user