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
@@ -10,7 +10,7 @@ const NothingHere = withSuspenseMemo<{
width?: number
style?: ViewStyle
}>(({ height, width, style }) => {
const { t } = useTranslation('messages')
const { t } = useTranslation()
height = height || 200
width = width || 200
@@ -18,7 +18,7 @@ const NothingHere = withSuspenseMemo<{
<View style={[styles.container, { height, width }, style]}>
<Icon name="music-rest-quarter" color={styles.text.color} size={width / 2} />
<Text style={[styles.text, { fontSize: width / 8 }]} numberOfLines={3}>
{t('nothingHere')}
{t('messages.nothingHere')}
</Text>
</View>
)